Empty Elements

Some HTML elements do not have an "end tag" which are called Empty Elements.



Empty Elements

Some HTML elements do not have an "end tag" which are called Empty Elements, Like <br>.This tag defines a line break.

Welcome<br>To<br>CodeToMake.com

View in Code Editor

  • Empty elements do not have content.
  • Empty elements are made up of just one tag (start tag). And this tag can be closed in the "start tag" (<br />).
  • But this is not required in HTML5.

<< : HTML Elements Nested Elements : >>