Re:You are not required to close your <p>, <li>, <img>, or <...
by kbolino on Sunday January 11, 2026 @11:34AM
(#46577145)
This interpretation of the p element implies that it contains a paragraph. But HTML is first and foremost a document format, and one could just as logically conclude that the p element simply starts a new paragraph. Under the latter interpretation, </p> would never exist any more than </hr> or </img>.
In practice, modern HTML splits the difference with rigorous and well defined but not necessarily intuitive semantics.
In practice, modern HTML splits the difference with rigorous and well defined but not necessarily intuitive semantics.