Barrierepruefung.de Web Accessibility Checker

WCAG 1.1.1 Non-text Content: explained simply

Any content that is not text, such as a photo, an icon or a chart, needs a text alternative that serves the same purpose. Controls need a name that describes their purpose. Pure decoration must be implemented so that assistive technology can ignore it.

Last reviewed: Sources

What does the criterion require?

Non-text content is anything that is not text: photos, graphics, icons, charts, audio recordings, animations. Under the WCAG definition it also covers emoticons, ASCII art and images of text. Someone who cannot see an image, for example because they are blind, only gets its content through text. A screen reader, software that reads out what is on screen, can speak that text or send it to a braille display.

So the criterion requires a text alternative that serves the same purpose as the non-text content (G94). What counts is the purpose, not the look. If an image contains words that are needed to understand the content, those words belong in the alt text (H37). The same image may need a different alternative on different sites: a globe used as a link reads "International Travel" on a travel agency's site and perhaps "International Campuses" on a university's.

Where a short text is not enough, as with a chart of sales figures, a short alternative says what the image is and a long description carries the content (G95). In the W3C's example the figures are also given in a table where that is possible.

The standard sets out six situations that are handled differently:

  • Controls and input: an image used as a submit button needs a name that describes its purpose, such as "Search" rather than "Magnifying glass". Further requirements for controls are in 4.1.2 Name, Role, Value.
  • Time-based media such as video and audio: the text alternative must at least identify it descriptively. Everything else media need is covered by the criteria under 1.2, for example 1.2.2 Captions (Prerecorded).
  • Tests and exercises that would be invalid as text, such as a hearing test: descriptive identification is enough.
  • Sensory experiences: content primarily intended to create a specific sensory experience, such as a concert recording or a painting: descriptive identification is enough. The Understanding document suggests adding descriptive text where possible.
  • CAPTCHA, a task meant to tell people from programs: the text alternative identifies and describes its purpose, and another form of CAPTCHA using a different sense is offered, for example an audio task alongside a visual one.
  • Decoration, formatting, invisible content: an ornament, a spacer image or an invisible tracking pixel must be implemented so that assistive technology can ignore it. For an img that means an empty alt="" and no title (H67).

Common failures

  • No alternative at all. An img, area or input type="image" without alt and without any other text alternative. Some screen readers then read the file name; others do not even do that (F65).
  • An alternative that is not one. Placeholders such as "image" or "picture", or internal labels such as "picture 1" or "0001", do not stand in for the image (F30).
  • Decoration with text. An ornamental image carries alt="spacer" or alt="image" instead of an empty value. Screen reader users hear words with nothing behind them (F39).
  • Information in a CSS background image. A background image cannot be given a text alternative. If it carries content, say a club's opening hours as a graphic, that content is simply missing without the image (F3).
  • An out-of-date alternative. The chart shows October's figures while the text still describes September. Or the home page images change daily and their alt texts do not (F20).
  • Colour left out of the text. Red bars mean "below target", and the alt text gives the figures but not who missed the target (F13).

Checked automatically and checked by you

What the automated check detects

Coverage: extensive

The automated check covers most of this criterion, but not every case.

Whether a text alternative exists can be decided by machine. Whether it describes the image accurately cannot.

Rules

  • Image without alternative text image-alt
  • input-image-alt
  • object-alt
  • [role="img"] and [role="image"] elements must have alternative text role-img-alt
  • svg-img-alt

What you check yourself

You answer this question in the manual checks of your scan.

Are the text alternatives accurate?

  1. Right-click an image on the page, choose "Inspect" (in some browsers "Inspect Element") and read its alt attribute in the highlighted source.
  2. Compare the text with the image: it must say what the image shows or does, and for an image used as a link also where the link leads. File names such as "IMG_0042.jpg" or just "image" are not sufficient.
  3. Check at least one image of every kind on the page: photo, graphic that carries information, icon used as a button. For purely decorative images, assistive technology must be able to skip them; an empty alt="" is the usual way.

Classification

Level
A
Introduced in
WCAG 2.0
W3C explanation
Understanding 1.1.1

Sources

As Markdown