Closing optional HTML tags just adds more ambiguity. How many HTMLParagraphElements here, what do you think?
<p>
text1
<p>
text2
</p>
</p>That is invalid syntax. Only phrasing content is allowed the p element (https://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Con...)
This is invalid html, p tag can be nested in a p tag.
2. And there’s no ambiguity there, just invalid HTML because paragraphs aren’t nestable.