Post

Void Element in HTML

Void element

A void element is an element in HTML that cannot have any child nodes (i.e., nested elements or text nodes.) Void elements only have a start tag; end tags must not be specified for void elements.

Void elements

  • <area>
  • <base>
  • <br>
  • <col>
  • <embed>
  • <hr>
  • <img>
  • <input>
  • <meta>
  • <param>
  • <source>
  • <track>
  • <wbr>

Self-closing tags

Self-closing tags (<tag />) do not exist in HTML.

This post is licensed under CC BY 4.0 by the author.