missing-img-alt¶
Added in 0.2.10 · Related issues · View source
What it does¶
Checks for <img> tags that do not declare an alt attribute.
Why is this bad?¶
The alt attribute provides a textual alternative for screen readers and is rendered when the
image cannot be loaded. Without it, assistive technologies have no way to describe the image to
the user.
Decorative images should declare alt="" so screen readers skip them.
Example¶
Use instead: