Authoring Meaningful Image Descriptions

What Are Image Descriptions?

Image descriptions, also known as alt text, are a text alternative for images that get read aloud by a screen reader. Image descriptions are also displayed visually to the user when images fail to load. This typically is not the case with mobile or desktop applications.

Why Should I Care?

Image descriptions give equal access to visual information contained in an image that screen reader users and users with low vision would otherwise not have access to without assistance. Without an image description, screen readers will only announce that an image is present or the name of the image file.

General Guidelines for Authoring a Description

Specific Guidelines

Photos and Portraits

When writing image descriptions for photos and portraits, focus on the relevant parts of the photo that directly relate to the surrounding content. Examples include:

Bad image descriptions come in a spectrum. Some may be bad because they are not descriptive enough, despite being compliant. Others might be bad because they contain redundant phrasing or both, despite also being compliant. Bad examples include:

Images Containing Text

Whenever possible, prefer styling text in a document to have your desired appearance. If you must have an image with text, the image description must contain the text word-for-word. This does not include text on signage when it is not relevant to the purpose of the image and its surrounding content.

Logo Images

Often, you will hear that logo images are never decorative. That is not entirely true. There are some instances where they do not require a description, such as in the footer of a website or document. When authoring an image description for a logo, follow the following guidelines:

Decorative Images

If an image doesn’t convey anything meaningful in comparison to the main content of your page, it should be considered decorative. This is often a judgment call. The only thing you realistically risk here is introducing more clutter in screen reader output.  Examples of images that might be decorative include:

Forms and Controls Containing Images

Some buttons, sliders, and other controls use images to convey additional information or use them as a visual label. These images provide little to no value to individuals who use a screen reader, so they would be set as decorative. If you use an image as a label for a control, you must ensure that the control has some kind of textual label. One way to do this is to use the “aria-label” attribute in its markup. You could also use an image combined with visible text if your website or application’s design allows it. Additionally, in forms when communicating that a field is required, if you’re using an image to convey that message, you must have a textual description for it. Examples of labels for controls with images include:

Backgrounds, Headers, and Footers

When you are working with headers in Word documents and background images on web pages, screen readers will skip over them. They do this to keep the reading experience focused on the main document or page content. If you put important information in a header or visually display it as a background image, you are hiding that content from a screen reader user.

Background Images

Background images are intentionally hidden from screen readers. Generally, this is a good thing. When It’s not a good thing is when infographics and other images that contain important information is displayed in this way. The key rule of thumb here is that if the content of the image is relevant to the main content in the body of the page or document, it must not be a background image. Examples of images that are suitable for use as backgrounds include:

Examples of images not suitable to be background images include:

Headers and Footers in Documents

When authoring a document, a header and footer section inserted by your word processor is not announced by a screen reader. If an image must be placed at the top or bottom of your document, place it in the body of the document and use the above guidelines to determine the image description application strategy.

Charts, Graphs, and Diagrams

When giving charts, graphs, and diagrams text alternatives, there are general guidelines you have to follow.

It is important to emphasize that alternative text for charts, graphs, and diagrams does not negate the need for a tabular representation of the data, especially for large datasets.

Watermarks

Watermarks are treated as decorative and not read by screen readers. If a watermark contains meaningful information, such as a classification level or an indication that the document is a draft, the information must be conveyed in the main content. Do not rely on the watermark alone to convey that information. If the watermark does not contain any meaningful information, don’t include its content in the main content. Watermarks must have low color contrast to keep focus on the main content of the document or page.