HTML does not require closing tags for certain elements like `<p>`, `<li>`, `<img>`, and `<br>`. This is a common misconception stemming from the XHTML era. In HTML, many elements have optional end tags, and void elements (like `img` and `br`) have no end tags at all. The self-closing `/>`syntax is valid but optional in HTML5,

15m read timeFrom blog.novalistic.com
Post cover image
Table of contents
Table of contentsBackgroundThe rules in HTML, and XHTMLBest practices in HTML
20 Comments

Sort: