News for hackers. Stuff that matters.
Re:Write HTML Right by niconii on Friday June 10, 2022 @02:40PM (#31697880)
You have to know about what breaks out of <p> tags regardless of whether or not you leave off the end tag, though.

<p><div></div></p> is invalid HTML because <div> ends the paragraph, resulting in an unpaired </p>.

Re:Write HTML Right by anjbe on Friday June 10, 2022 @03:01PM (#31698114)
And not just because of that. In XHTML‐as‐XML, where <div> does not implicitly end the paragraph, what you posted is still invalid because <p> cannot contain <div>.