Alt text is very long

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

Why it matters

Alt text over about 150 characters is tiring to listen to and cannot be skipped part-way through. Long descriptions belong in the page itself.

How to fix it

Keep the alt text to the point. Put any longer explanation (for a chart or infographic, say) in visible text next to the image and refer to it.

<!-- Before -->
<img src="chart.png" alt="A bar chart showing sales by month ... (200 more words)">

<!-- After -->
<figure>
  <img src="chart.png" alt="Sales by month, rising from March to a peak in November">
  <figcaption>Full figures are in the table below.</figcaption>
</figure>

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.