img-alt-attributes.md

July 2, 2019 ยท View on GitHub

img-alt-attributes

NOTE: This rule is deprecated in favor of the more comprehensive rule require-valid-alt-text.

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