Re:You are not required to close your <p>, <li>, <img>, or <...
by psychoslave on Sunday January 11, 2026 @05:45AM
(#46574377)
This is invalid html, p tag can be nested in a p tag.
[ Parent
| on HN ]
Re:You are not required to close your <p>, <li>, <img>, or <...
by Hendrikto on Sunday January 11, 2026 @12:05PM
(#46577463)
Even though it arguably should be, according to HTML5 parsing rules, this is not invalid. It is just interpreted differently from
what most people would probably expect.
I think this is the point of the example, afaiui: The closing tags don’t clarify anything, quite the contrary, actually. They serve only to confuse the reader.