Which is semantically better, alt=""
, role="presentation"
, CSS bg image or aria-hidden="true"
for hiding decorative images from assistive technologies?
The best thing is to use blank alt
text.
<img src="squiggle.gif" width="20" height="20" alt="" />
Using null alt text and no title attribute on img elements for images that AT (Assistive Technology) should ignore.
- source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With