Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Latest commit

 

History

History
16 lines (9 loc) · 670 Bytes

22-alt-attributes.md

File metadata and controls

16 lines (9 loc) · 670 Bytes

22. Define Images with Appropriate Text Alternatives

📹 Video

  • Always strive to provide descriptive and meaningful alt attributes. 👍

  • A good way to test whether your alt text is descriptive enough is to prevent the image from loading. Does the remaining alt text make sense?

  • If the image doesn't provide any additional information and is purely decorative, you can provide any empty alt attribute. 👍

<img src="mypic.jpg" alt="">
``

* Empty alt text actually removes images from the accessibility tree so they'll be skipped by the screen reader.