logoalt Hacker News

senfiajyesterday at 6:57 PM1 replyview on HN

Maybe you are not required to close, browsers are ridiculously tolerant to html mistakes. But do you think it would be easy to maintain that HTML file and not accidentally include something in that unclosed tag? I often format with indentation in order to work with the file comfortably.

Also it annoys me when people are still closing tags with '/>'.


Replies

downsplatyesterday at 8:39 PM

Did you read the article? An unclosed <p> is not a mistake that the browser is tolerating, it's 100% well-defined html5 according to spec. If your tooling can't handle the language as defined, maybe the problem is with the tooling.