Ask HN: What's a minimal subset of HTML that works everywhere?
4 comments
Conveniently, the first webpage ever made has a manual: http://info.cern.ch/hypertext/WWW/MarkUp/Tags.html
Full site here: http://info.cern.ch/hypertext/WWW/TheProject.html
Full site here: http://info.cern.ch/hypertext/WWW/TheProject.html
Thanks for that link. Interesting. I love going back to the first days of the web. Which is a weird thing to have collective nostalgia about because it's still so young, even tho it's so big.
I was really surprised that dl, dt and dd were there from the start. I thought they came in much later! :)
I was really surprised that dl, dt and dd were there from the start. I thought they came in much later! :)
It's very hard or impossible to come up with such a tag set. The number of existing web renderers, all with their own quirks and bugs, are much to big. Some tag might work in Opera 2.0 but not if you nest it to deeply. img tags doesn't "work" in text browsers and unicode support has historically been spotty everywhere.
I think what I'll end up doing is just creating a minimal set, with headers, lists, links, forms, inputs and tables for layout and maybe a few more, and that will have to do. I'll try to compose the HTML so that even if, say, table is unrecognized, then semantics and layout are not unreasonably less effective.
Your subset must likely work on differently-smart phones, and affordable smartphones popular in super-growth economic regions. You may also find it easier to post tags that can't be supported, rather than those that can, and assume that deprecated tags (like 'blink') are excluded by default. This is also ok. If something can be left out (its markup quality can be reproduced by another tag or combination) then it works to leave it out. This is the minimum viable subset of HTML that works everywhere. You might call it HTML 0, or HTMML (min) but maybe it's closer to HTML 1.618 -- an elegantly proportioned HTML with not an inch extra anywhere.
Finally, it's less important that it be "standards based" than that it works on the majority of devices. Remember when an Apple ][ rendered HN? That should be achievable with your subset. And remember "works" doesn't here mean pretty. It just means : displays information in a comprehensible way with the minimum amount of tags. All serious submissions appreciated -- it's not longer April 1 in my tz. :)
+feel free to specify your everything. It's probably okay as long as it's reasonably inclusive.