logoalt Hacker News

b2ccb2yesterday at 10:24 AM1 replyview on HN

That is invalid syntax. Only phrasing content is allowed the p element (https://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Con...)


Replies

jeroenhdyesterday at 4:18 PM

The second <p> is not inside of the first. The first <p> closes when the second <p> is encountered.

The syntax is invalid, but that's because the final </p> has no opening <p> that it can close.