Image has no alt attribute

  • WCAG 1.1.1 Non-text Content, level A
  • Critical
  • Images
  • Automated
  • Server pass

Why it matters

Screen reader users hear the file name or nothing at all, so they miss whatever the picture was telling everyone else. Search engines miss it too.

How to fix it

Add an alt attribute. Describe what the image shows or says, in a short sentence. If the image is purely decorative, use an empty alt (alt="") so screen readers skip it.

<!-- Before -->
<img src="team.jpg">

<!-- After: informative -->
<img src="team.jpg" alt="The four of us outside the studio, laughing at a whiteboard">

<!-- After: decorative -->
<img src="swirl.svg" alt="">

Read the W3C guidance: Understanding 1.1.1 Non-text Content.

Related rules

Find this on your own site. A11yMate scans every page and lists where it happens. See pricing or browse all rules.