1.1.1 Non-text Content
Non-text content that conveys something has a text alternative
- Rules decide part of it
- Tools: The browser's developer tools
- Look through the whole page for content that isn't text: photos, icons, logos, charts, maps, diagrams, video posters, and the pictures inside buttons and links.
- For each, select it in the developer tools' Elements pane and read the Name in its Accessibility pane.
- Note each one that has no name and isn't hidden from assistive technology (with alt="", aria-hidden="true", role="presentation" or as a CSS background).
- Look also for information that only CSS shows: background images, icon fonts and pictures added with the content property. Inspect each, since there is no alt attribute to read, and check that what it shows is also given in text that a screen reader reads.
- For content that can't be described in a few words, such as a chart or a map, check that the name at least says what it is, and that a fuller description is on the page or linked beside it.
- Passes when
- Every piece of non-text content a person needs has a text alternative, or is hidden from assistive technology because it is decorative.
- Fails when
- Non-text content that conveys something has no text alternative, so a screen reader user meets an unnamed image or nothing at all, which fails WCAG 1.1.1.
Rules that test it: img-alt-present, role-img-text-alternative-present, canvas-text-alternative-present, embed-text-alternative-present, svg-text-alternative-present, svg-image-text-alternative-present, object-text-alternative-present, video-poster-text-alternative-present, meter-name-present, progressbar-name-present
This procedure also assesses:
- <img> has alt attribute
- role="img" has text alternative
- <canvas> has fallback text or accessible name
- <embed> has fallback text or accessible name
- <svg> has a text alternative mechanism when exposed
- Inline <svg> has a <title> or an accessible name
- SVG <image> has a text alternative mechanism
- <object> has fallback text or accessible name
- <video poster> has a text alternative mechanism
- role="meter" elements expose an accessible name
- role="progressbar" elements expose an accessible name
Images and icons used as controls are named by what they do
- Rules decide part of it
- Tools: The browser's developer tools
- Find every link, button and other control whose only content is an image or icon, such as a logo that links home, a magnifier for search or a cross that closes a dialog.
- For each, select it in the developer tools' Elements pane and read the Name in its Accessibility pane.
- Check that the name says what the control does or where it leads ("Search", "Close", "Home"), not what the picture shows ("magnifying glass") or a file name.
- Passes when
- Every control made of an image or icon has a name that says what it does or where it goes.
- Fails when
- A control made of an image or icon has no name, or one that describes the picture rather than what it does, which fails WCAG 1.1.1.
Rules that test it: input-image-alt-present, area-alt-present
This procedure also assesses:
- <input type="image"> has alt attribute
- <area> has alt attribute
Decorative images are hidden from assistive technology, and only those
- Only a person can check it
- Tools: The browser's developer tools
- Look through the page for images, icons and graphics that only decorate: borders, dividers, background pictures, ornaments, and pictures whose content the text next to them already gives.
- For each, select it in the developer tools' Elements pane and check in its Accessibility pane that it is ignored (alt="", aria-hidden="true", role="presentation", or a CSS background).
- For a decorative SVG drawn in the page, check that it has aria-hidden="true". Without it, some browser and screen reader pairs announce it as an image with no name, or read the text inside it.
- Then do the reverse: for each image that is hidden that way, ask whether a user would miss anything if it were gone: information, a label, a chart's data.
- Passes when
- Decorative images are hidden from assistive technology, and every image that is hidden is truly decorative.
- Fails when
- A decorative image is announced (often by its file name), or an image that conveys information is hidden from assistive technology, which fails WCAG 1.1.1.
Each text alternative gives what its image gives
- Rules decide part of it
- Tools: The browser's developer tools
- For each image and other non-text content that has a text alternative, read the alternative (the Name in the developer tools' Accessibility pane) and look at the content in its place on the page.
- Ask what the content gives a reader there, and check that the alternative gives the same: the words in an image of text, the point a photo makes, the facts a chart shows.
- Where the alternative only names a complex image, such as a chart or diagram, check that the details are in a caption, text or table next to it, or a link beside it, that a screen reader user can find from the image.
- Note alternatives that are a file name, a web address, a word such as "image" or "photo", or that repeat the text right next to them.
- Check the language of each alternative: it should be in the language of the page, or marked with its own.
- Passes when
- Each text alternative gives what its content gives in that place, directly or through a description a screen reader user can reach from it.
- Fails when
- A text alternative doesn't give what the content does, for example a file name, a generic word or a chart named without its data anywhere, which fails WCAG 1.1.1 (F30).
Rules that test it: area-alt-quality, canvas-text-alternative-quality, embed-text-alternative-quality, img-alt-decorative, img-alt-quality, input-image-alt-decorative, input-image-alt-quality, object-text-alternative-quality, svg-text-alternative-quality
This procedure also assesses:
- Text alternative is appropriate and equivalent
- Alt text suspicious patterns (e.g., filename/placeholder)
A CAPTCHA says what it is for and offers another form that uses a different sense
- Only a person can check it
- Tools: A screen reader
- Find any test the page uses to tell people from programs, such as distorted letters to type, pictures to pick or a puzzle to drag.
- Check that it has a text alternative that says what it is and what to do, without giving the answer away.
- Check that it offers another form that uses a different sense, such as an audio version of a visual test, or another way altogether, such as a code by email.
- Try the other form with a screen reader and the keyboard.
- Passes when
- The page has no such test, or the test says what it is and offers a form that uses another sense and can be completed.
- Fails when
- The test can only be passed by seeing (or only by hearing), or has no text saying what it is, which fails WCAG 1.1.1.