Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 566 Bytes

img-alt-attributes.md

File metadata and controls

21 lines (14 loc) · 566 Bytes

img-alt-attributes

An <img> without an alt attribute is essentially invisible to assistive/accessibility technology (i.e. screen readers). In order to ensure that screen readers can provide useful information, we need to ensure that all <img> elements have an alt attribute specified.

This rule forbids the following:

<img src="rwjblue.png">

This rule allows the following:

<img src="rwjblue.png" alt="picture of Robert Jackson">

References