Empty HTML Elements

Empty HTML Elements

Empty HTML Elements — Are HTML elements with no content.

<p>This is a <br> paragraph with a line break.</p>
  • Do not have an end tag, such as the <br> element.
  • Can be closed" in the opening tag like this.
  • HTML5 does not require empty elements to be closed.
  • But if you want stricter validation, or if you need to make your document readable by XML parsers, you must close all HTML elements properly.

Empty HTML Elements — Structure map

Clickable & Draggable!

Empty HTML Elements — Related pages: