Accessibility guides

How to fix "Images must have alternative text"

A screen reader cannot see an image. If the img has no alt attribute, most screen readers fall back to reading the file name, so a visitor hears "I M G underscore 4 4 7 1 dot J P G". This is the single most common accessibility failure on the web and it fails WCAG 1.1.1.

Decide what kind of image it is

<img src="sea-salt-candle.jpg" alt="Sea Salt candle in a clear glass jar">
<a href="/"><img src="logo.svg" alt="Harbor Candle Co. home"></a>
<img src="divider.png" alt="">

Common mistakes

Check your own site

Our free scanner loads your pages in a real browser and lists every failure like this one that automated testing can detect. Scan a site.