logoalt Hacker News

chaz6yesterday at 12:00 PM1 replyview on HN

If I enter the following:-

    <p><p></p>
Should the second <p> be nested or not?

Replies

bazoom42yesterday at 12:03 PM

No. P elements does not nest, so this is parsed as: <p></p><p></p>