Image Alternatives
Goal
A user is provided an understandable description of the information or functionality contained within an image. If there is no information conveyed by the image, the user's assistive technology should be able to ignore the image.
Normative text
Guideline
Users have equivalent alternatives for images.
Foundational Requirements
-
Would removing the image impact how people understand the page?
- No, decorative image is programmatically hidden. Stop.
- Yes, continue.
-
Is the image presented in a way that is available to user agents and assistive technology?
- Yes, image must meet Image is programmatically determinable AND the accessibility support set incorporates Equivalent text alternative is available for image that conveys content. Stop.
- No, continue.
-
Is an equivalent text alternative available for the image?
- Yes, image must meet Equivalent text alternative is available for image that conves content. Stop.
- No, fail.
Supplemental Requirements
- The role and importance of the image is programmatically indicated (Supporting requirement).
- The type of image (photo, icon, etc.) is indicated (Supporting requirement).
- Auto generated text descriptions are editable by content creator (Supporting requirement).
Assertions
What to do
The general way to determine whether an image is conveyed appropriately is to:
- Remove, hide, or mask the image.
- Replace it with the text alternative.
- Check that the meaning is substantively equivalent
- the purpose of the non-text content is met by the text alternative.
- The way the content is presented is using the most appropriate, accessibility-supported (math, code samples, etc.)
- If the non-text content contains words that are important to understanding the content, the words are included in the text alternative.
- If the non-text content duplicates adjacent text, the alternative may be null.
Definitions
- Image - a visual representation of something.
- Equivalent to the image - text or audio which serves an equivalent purpose to what presenting the image achieves. Where text is embedded in an image that text is included in the equivalent unless it is incidental text from a photo (e.g. a street sign in a photo of a town).
- Decorative image - serving only an aesthetic purpose, providing no information, and having no functionality Removing the image would not affect the meaning or function of the page.
- Complex image - an image which requires more than one or two sentences to describe the contents.
- Text - a sequence of characters that can be programmatically determined, where the sequence is expressing something in human language.