WCAG Encyclopedia

1.1.1 · PerceivableLevel A

Non-text Content

Anything that is not text — an image, an icon, a chart, a video thumbnail — needs a text equivalent that serves the same purpose. Decoration needs an empty alt so screen readers skip it. The test is not "is there alt text" but "would someone who cannot see this end up knowing the same thing".

Principle
Perceivable
Guideline
1.1
Level
A
In WCAG since
2.0
Number
1.1.1

Broken, then fixed

The same interface twice: first with the mistake, then with the smallest change that fixes it.

Broken: Alt text exists, and tells the reader nothing.
  • alt="image"A product photo, described as "image".
  • alt="chart.png"A sales chart, described by its filename.
  • alt="decorative swirl"A divider, announced to every screen reader user who passes it.

All three have alt attributes, so an automated checker reports no error. All three are useless: two withhold the information, and the third adds noise.

Fixed: Each image is described by what it is for, not by what it is.
  • alt="Wool overshirt in rust, worn open"What a shopper needs in order to choose.
  • alt="Sales rose 12% in Q3, then flattened"The finding the chart exists to convey — with the full table linked beneath it.
  • alt=""Empty, not missing. The image is removed from the accessibility tree entirely.

The same three images. What changed is that each description now answers "why is this here", which is a different question from "what is in it".

What changed in the code

The fix as a diff: removed lines are marked with a minus, added lines with a plus.

Markup diff — product.html, three images
removed: <img src="p-401.jpg" alt="image">
added: <img src="p-401.jpg" alt="Wool overshirt in rust, worn open">

removed: <img src="divider.svg" alt="decorative swirl">
added: <img src="divider.svg" alt="">

An empty alt is a decision; a missing alt attribute is not. Without one, many screen readers fall back to reading the filename aloud.

How to test

Check your own interface against 1.1.1, one step at a time.

  1. List every piece of non-text content on the page: photos, icons, SVG graphics, charts, image buttons, images of text, and CSS background images that carry information.
  2. Open the accessibility inspector in your browser (the Accessibility pane in Chrome or Edge DevTools, or the Accessibility tab in Firefox) and select each one. Read the name it shows: for an img element, that is its alt text.
  3. Ask of each name whether it gives the same information, or does the same job, as the image. A product photo needs what matters about the product; an icon button needs what the button does, not what the icon looks like.
  4. Check each decorative image is hidden from assistive technology: alt="" on an img, aria-hidden="true" on an inline SVG, or the image set as a CSS background. An img with no alt attribute at all fails, because a screen reader may read out its file name.
  5. Find each chart, diagram or map and check a longer description sits next to it or is linked from it, such as the data as a table or a paragraph that says what the chart shows.
  6. Turn on a screen reader (NVDA on Windows, VoiceOver on a Mac) and move through the page. Each meaningful image should be read out with its alternative, and no decorative one should be read at all.

Common questions

Do decorative images need alt text to pass 1.1.1?

No. They need to be hidden from assistive technology instead, and alt="" does that for an img. Leaving the alt attribute off is not the same: a screen reader may then read out the file name.

Does an icon button pass 1.1.1 if the icon is clear?

No. The button needs a text name that says what it does, such as "Search" for a magnifying glass: alt on an image button, or aria-label on a button that holds an SVG.

Is a short alt enough for a chart?

Only when the chart makes one point that a sentence can carry. Otherwise give a short alternative that names the chart, and a longer description next to it, such as the data as a table or a summary of the trend.

Does a CAPTCHA fail 1.1.1?

Only when it has no text saying what it is for, or no other version for a different sense. A visual puzzle can stay if text names it as a test that you are human and an audio version sits beside it.

Try it yourself

A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.

Try it: write the alt text

How to use this lab

  1. Goal. Give the image alt text that tells a screen reader user what it is there for.
  2. The controls. “The image” picks a product photo or a decorative divider. “Its alt text” picks a ready-made alt: Leave it out, The file name, Decorative: alt="" or Describe it, and the Or write your own alt text field takes your own words instead. The markup and Screen reader says show what is read out.
  3. Try this. The lab starts with the photo’s alt left out. Choose The file name, then Describe it, or type a word like “image” in the Or write your own alt text field. Then pick the divider under “The image” and choose Decorative: alt="".
  4. What it means. 1.1.1 passes when the photo is named by what it shows, or the divider has alt="" so it is skipped. With no alt, a file name or just “image”, people using a screen reader learn nothing about what is for sale, and a named divider is only noise. The verdict line under the lab says which.
The image
Its alt text

The markup

<img src="overshirt-401.jpg">

Screen reader says

Nothing. The image is skipped.

1.1.1 fails

More from Perceivable

This guideline has no other Level A or AA criteria, so here are more under the same principle.