3 ms·
View page source. What a beauty ️️.
by randompi 7y ago
View page source. What a beauty ️️.
- thepete2 7y agoReally? He doesn't close the <p> tags.
- wizzwizz4 7y agoThat's only a problem for XHTML. HTML5 implicitly closes the previous <p> tag when you open the next one; thus, a <p> inside a <p> is an implicit </p><p>, if you will.
- colejohnson66 7y agoWhy does VS Code auto add the closing <p> tag when you open them then? It doesn’t do it for, say, <img>. Bug?
- wizzwizz4 7y agoFeature. <p> tags can function as containers for text and other elements, and VS Code can't distinguish between <p>, with the special handling, and <div>, without it. Okay, to be fair, that does sound like a bug.
- thepete2 7y agoDidn't know that. Thanks :)
- CaptainMarvel 7y agoThat’s optional in HTML5
- glaberficken 7y agoCame here to post exactly the same. You CAN write human readable html!