Image elements do not have [alt] attributes that are redundant text

Image alt text does not duplicate the surrounding visible text.

On this page

Impact

ScanGov impact ratings

About

Informative elements should aim for short, descriptive alternative text. Alternative text that is exactly the same as the text adjacent to the link or image is potentially confusing for screen reader users, because the text will be read twice.

Risks

Screen reader users cannot identify or interact with elements.

Why it's important

Gives screen reader users meaningful descriptions of interactive elements so they can understand and use them.

User stories

As a screen reader user, I want all interactive elements to have clear, descriptive names so that I know what they do.

Code

Failing pattern:

<!-- Fail: alt text repeats surrounding caption -->
<figure>
  <img src="photo.jpg" alt="White House photo">
  <figcaption>White House photo</figcaption>
</figure>

Passing pattern:

<!-- Pass: alt is empty when caption already describes the image -->
<figure>
  <img src="photo.jpg" alt="">
  <figcaption>The White House, 1600 Pennsylvania Ave NW, Washington, DC</figcaption>
</figure>

Error

ScanGov messaging when a site fails a standard:

Failed: Image elements do not have [alt] attributes that are redundant text

Guidance

Indicators

On this page