top | item 38255995

(no title)

adfgioninio | 2 years ago

It is a moral principle that websites should mostly use HTML. This is not because it's the easiest way to build websites and certainly not because it's the best way to make lots of money. It's because it ensures everyone can use the same web and gives the user agent as much power as possible to act on the user's behalf.

discuss

order

omnimike|2 years ago

> It's because it ensures everyone can use the same web and gives the user agent as much power as possible to act on the user's behalf.

Those aren't the principles underlying HTML, and I doubt Tim Berners-Lee was thinking about that at all when he designed HTML. Instead, he was trying to design a format which could be read by both machines and humans, which is why "semantic" HTML elements were introduced. In the end, LLMs were what allowed machines to understand web pages, not semantic HTML elements.

If we do want to make this about accessibility, anyone who has worked with screen readers knows that semantic HTML has failed on that front too. Screen readers rarely understand fancy elements. Instead we often have to create obscene DOM structures to get the reader to say something reasonable, which is at complete odds with the ideals of the semantic web.

JadeNB|2 years ago

> If we do want to make this about accessibility, anyone who has worked with screen readers knows that semantic HTML has failed on that front too. Screen readers rarely understand fancy elements.

Isn't that a failure of screen readers, not of semantic HTML? That is, with semantic HTML in place, changes to screen readers themselves can fix the problem by extracting the information that is there; but, without semantic HTML in place, no effort on the part of the developers of screen readers could extract information that wasn't there. And, to put the emphasis differently, if screen readers won't change at all, then there is absolutely nothing that we can do with HTML—except, as you say, to abuse it to achieve what can at best be a fragile and unreliable effect—to fix the problem on that end.

It may, in some sense, be moot because developers of screen readers aren't interested in making those changes, but I think that placing the onus of responsibility there is a more accurate description.

hutzlibu|2 years ago

"It's because it ensures everyone can use the same web"

But they cannot. A blind person just cannot make good use of a visual map feature, so there is no reason to make it in pure html for accesibility. You'll have to find other ways to serve them. (I assume mostly with text descriptions of the area)

gemstones|2 years ago

Not according to my morals!