2 ms·
If you have no alt attribute, then screen readers read the URL! Empty strings are the way to go for decorative images
by cramforce 4y ago
If you have no alt attribute, then screen readers read the URL!
Empty strings are the way to go for decorative images
- deleted 4y ago[deleted]
- latchkey 4y agoWhat if I have an app that no screen reader will ever read?
- joshka 4y agoThen write your own component that extends and removes the requirement. Until then, web tooling is better off explicitly acknowledging that accessibility is an explicit goal.
- abujazar 4y agoAlt is a required attribute of the <img> tag, so requiring it is just basic validation. C code won't compile if you omit the semicolon after statements, either.