News for hackers. Stuff that matters.
Re:You are not required to close your <p>, <li>, <img>, or <... by kzrdude on Sunday January 11, 2026 @05:30AM (#46574294)
It may look nested but the first p is actually closed when the second p starts, according to https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...
Re:You are not required to close your <p>, <li>, <img>, or <... by jchw on Sunday January 11, 2026 @05:39AM (#46574333)
Wouldn't this still result in just two paragraph elements? Yes, the first gets auto-closed, but I don't see how a third paragraph could emerge out of this. Surely that closing tag should just get discarded as invalid.

edit: Indeed, it creates three: the </p> seems to create an empty paragraph tag. Not the first time I've been surprised by tag soup rules.

Re:You are not required to close your <p>, <li>, <img>, or <... by hnlmorg on Sunday January 11, 2026 @05:48AM (#46574390)
Hence why I said “2” ;)