Why this matters
About 7.6 million Americans have a visual disability. Alt text is how they understand your images. It is also used by Google to index your images, which helps your SEO. Missing alt text is one of the top 5 most common WCAG violations.
Code examples
✗ Incorrect — fails WCAG
<img src="team-photo.jpg"> <img src="logo.png"> <img src="btn-submit.png">
✓ Correct — passes WCAG
<img src="team-photo.jpg" alt="The WebPossum team at our Memphis office"> <img src="logo.png" alt="WebPossum — WCAG Accessibility Scanner"> <img src="btn-submit.png" alt="Submit form"> <!-- Decorative image: use empty alt --> <img src="divider.png" alt="">
How to fix it — step by step
- 1Add an alt attribute to every img element on your page
- 2For informative images: describe what the image shows in plain language
- 3For functional images (buttons, icons): describe what they do, not what they look like
- 4For decorative images: use alt='' (empty) — this tells screen readers to skip it
- 5Never use the filename as alt text (e.g. alt='photo_2024_final_v2.jpg')
- 6Keep alt text under 125 characters — be concise and descriptive
- 7Don't start with 'image of' or 'photo of' — screen readers already announce it's an image
Reference: WCAG 2.2 Success Criterion 1.1.1 (Level A)
Test it for free
Use WebPossum to automatically detect this violation and every other WCAG 2.2 issue on your site. Free, instant, no signup required.