4 ms·
There's no such thing as an alt tag, you're mixing up tags with attributes. Screen readers have skipped over empty alt attributes for decades. I'm not certain
by JimDabell 6y ago
There's no such thing as an alt tag, you're mixing up tags with attributes.
Screen readers have skipped over empty alt attributes for decades. I'm not certain they ever behaved differently, but if there were a time when empty alt attributes caused problems, it was back in the 90s. Best practice for purely decorative images has been to use empty alt attributes for 20+ years.
- bryanrasmussen 6y ago>but if there were a time when empty alt attributes caused problems, it was back in the 90s. Maybe my memory is off but I think up until the middle of the first decade of this century empty alt text was not good for screen readers, although maybe that was just because you always have to take into account older screen readers still in use.
- JimDabell 6y agoI was paying attention to this stuff by the turn of the century and best practice back then was the same as it is now. Screen readers have come a long way, but they could handle empty alt attributes correctly back then as well. I just checked, and the HTML 4 specification has been advising people to use empty alt attributes in this situation since 1997. https://www.w3.org/TR/WD-html40-970708/struct/includes.html#h-7.7.7 https://www.w3.org/TR/WD-html40-970708/struct/includes.html#...
- Grumbledour 6y agoYeah, I meant to write attribute of course.