← Back to context

Comment by JimDabell

14 hours ago

> Just because it worked on the one browser you tested it on, doesn't mean it's always worked that way, or that it will always work that way in the future...

All browsers have worked this way for decades. It’s standard HTML that has been in widespread use since the beginning of the web. The further back you go, the more normal it was to write HTML in this style. You can see in this specification from 1992 that <p> and <li> don’t have closing tags at all:

https://info.cern.ch/hypertext/WWW/MarkUp/Tags.html

Maybe there were obscure browsers that had bugs relating to this back in the mid 90s, but I don’t recall any from the late 90s onwards. Can you name a browser released this millennium that doesn’t understand optional closing tags?