Re:Only 2.6% of the most visited websites have fully valid HTML
by darrenf on Wednesday August 12, 2026 @11:43AM
(#49274228)
AIUI plenty of tags don't need to be closed. `<input>`, `<hr>`, `<img>` are the first three off the top of my head. Probably in XHTML you would've self-closed them.
[ Parent
| on HN ]
Re:Only 2.6% of the most visited websites have fully valid HTML
by account42 on Thursday August 13, 2026 @03:53AM
(#49282930)
Those are different from <p> as they are always self-closing immediately and thus cannot even be manually closed. <p> is only automatically closed if there is no </p> before the next block element.