This article needs an editorial review. How you can help.

An empty element is an element from HTML, SVG, or MathML that cannot have any child nodes (i.e., nested element or text inside an element).

The HTML, and SVG, and MathML specifications define very precisely what each element can contain. Many combinations have no semantic meaning, for example an <audio> element nested inside an <hr> element.

In HTML, using a closing tag on an empty element is usually invalid. For example, <input type="text"></input> is invalid HTML.

The empty elements in HTML:

Note: On very rare occasions, empty elements are wrongly called "void elements".

Document Tags and Contributors

 Contributors to this page: jtojnar, cvrebert, Andrew_Pfeiffer, klez, teoli, chrisdavidmills
 Last updated by: jtojnar,