Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The “loose” standards of HTML led to some really awful things happening in the early web. I remember seeing, e.g.,

     <large><li></large> item text
to get a bigger bullet on a list item which worked fine in Netscape but broke other browsers (and since I was on OS/2 at the time, it was an issue for me).

Really, in 2025 people should just write XHTML and better yet, shouldn’t be generating HTML by hand at all except for borderline cases not handled by their tools.



Unfortunately XHTML5 doesn't exist and if you try to force the issue, you have to re-declare all of the non-numeric HTML entities in your own DTD (I abandoned the idea here). I'd love to use XHTML, its just not viable anymore.

As for generating all HTML, that's simply not possible given the current state (of open-source at least) WYSIWYG HTML editors.


> Unfortunately XHTML5 doesn't exist

This is a mirage, apparently: https://html.spec.whatwg.org/multipage/xhtml.html


That's not HTML5 as far as I can tell. If you want both HTML5 and XML validation, you have to write your own DTD.


I stopped using entities once we had UTF-8. I suppose there’s a case for the occasional &lt; &gt; but beyond that, I have no problem typing “‘—’” or üçě when I need to.


I wish HTML 6 will actually be XHTML 6.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: