4 ms·
It's often better to specify alt="" than not at all, because screen readers may use the filename instead if there's no alt attribute.
by abujazar 4y ago
It's often better to specify alt="" than not at all, because screen readers may use the filename instead if there's no alt attribute.
- googlryas 4y agoThat's actually a detriment then, if the "fix" for no a11y makes screen readers think they should use no alt text, instead of some possibly meaningful alternate.
- Vinnl 4y agoThe fix for no a11y is to add a11y. In many cases (i.e. the "often" specified by GP), images contain no extra information, in which case you should indicate that by adding alt="". In other cases, you should add an actual description.
- googlryas 4y agoI meant the "fix" of people not caring about a11y(which is why I put it in quotes) and just trying to get their code to compile. If people don't care about a11y, they aren't going to start devoting time to it because a tool puts a slight roadblock in their way - they're just going to try to bypass the tool.
- Vinnl 4y agoSure, but it doesn't really matter what you do for those people; their projects will be inaccessible anyway. For the rest of us, it's a useful reminder.