Image alt text should not duplicate adjacent link or button text

text-alternatives/image-redundant-alt · WCAG 1.1.1 · Level A

Image alt text should not duplicate adjacent link or button text. When alt text repeats surrounding text, screen reader users hear the same information twice.

When an image is inside a link or button that also has text, make the alt text complementary rather than identical. If the image is purely decorative in that context, use alt='' to avoid repetition.

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.8.0