Hacker News new | ask | show | jobs
by jmts 2835 days ago
If accessibility is the exact situation alt text is designed for, and it works for the most part, who is to blame for it not being accessible if not the person putting inaccessible text in there? Merely providing something is not equivalent to providing a good solution.

By my understanding (as a sighted person who has relatively zero experience using such features) alt text is for short pieces of text that might aid in communication of an image to a blind person. I have even less understanding on whether or not dumping a chunk of code in there would be at all useful, and I expect very few sighted persons would know better. Hence my complaint, and hence my question.

1 comments

Yes, "alt" attribute is for short descriptions. From the w3.org site:

"The alt text should be the most concise description possible of the image’s purpose. If anything more than a short phrase or sentence is needed, it would be better to use one of the long description methods discussed in complex images."

The alternatives for long descriptions are the "longdesc" attribute, "figure" with "figcaption" tag or the "aria-describedby".

https://www.w3.org/WAI/tutorials/images/complex/