| Start |
|---|
| Void elements HTML 4.01/XHTML 1.0 Strict includes the following void elements:
HTML 5 standards include all non-deprecated tags from the previous list and
The example below does not include void elements: Notice how every element has an opening tag, a closing tag, and text or other elements inside the opening and closing tags. Void tags however, are shown in the example below: With the exception of the img tag, all of these void elements have only an opening tag. The img tag, unlike any other tag, has a self closing RemarksA void element cannot have any content but may have attributes. Void elements are self-closing, so they must not have a closing tag. In HTML5 (opens new window), the following elements are void:
|
Read Article
https://develop.horje.com/learn/1434/reference