Void elements in HTML5.
some elements cannot have content.These are called void elements. For example, the <br> tag represents a line break and cannot have any content.
The following is a list of void elements in HTML5.
- <area> Defines a hyperlink area with some text in an image map
- <base> Specifies the document’s base URL or target for all relative URLs in thedocument
- <br> Represents a line break
- <col> Defines the properties of one or more columns within a <colgroup> element
- <command> Defines a command that can be invoked by a user
- <hr> Specifies a thematic change in content
- <img> Defines an image
- <input> Defines a typed data field that allows the user to edit the data
- <link> Defines a relationship between a document and an external resource such as
- <keygen> Defines a key-pair generator control for forms that is used to encrypt data
- that will be passed to the server
- <meta> Defines metadata that describes the HTML document KeyTerms
- <param> Defines a parameter for an object
- <source> Defines a multimedia resource for a
- <video>
- <audio>
- <wbr> Optionally breaks up a large word at this element