• Success Criterion 1.1.1
  • Conformance level A
  • W3C reference F3

Product Photo Added as a CSS Background With No Alt Text

1.1.1 — Non-text Content

Scenario

Setting

A recipe site's ingredient list

What’s wrong

An image that carries real information is added through CSS as a background image, so there is no alt text anywhere — screen reader users never know it exists.

Example

<img src="chart.png">

Why it matters

Blind and low-vision people using screen readers, and anyone who browses with images disabled, when icons or photos carry meaning.

How to test

View the page in Chrome DevTools with images disabled: if the image was a CSS background, no fallback text appears at all where it should be.

How to fix

Put informative images in the HTML (img with alt), or provide the same information as visible text; reserve CSS backgrounds for decoration.

<img src="chart.png" alt="Q3 revenue chart showing 12% growth">

The alt attribute gives assistive technology the same information the image conveys visually.

Outcome

On a recipe site's ingredient list, this barrier is gone for blind and low-vision people using screen readers — they can complete the task without hitting this wall.

Who is affected

Blind and low-vision people using screen readers, and anyone who browses with images disabled, when icons or photos carry meaning.

Learn more