In this section, we provide recommendations to guide your inclusion of accessible, image-based content.
What are images?
Images include: photographs, diagrams, pictures, charts, graphs, maps
File types: .gif, .jpg, .png
Before you begin
Why are you including the images you have selected?
Before you can determine what you need to do to make an image accessible, you first need to identify its purpose or value to your textbook. Consider the following questions:
- Does your image serve a functional purpose? In other words, is it conveying non-text content to students? If so, you should:
- Does your image serve more of a decorative purpose? In other words, is it primarily a design element that does not convey content? If so, you should:
- avoid unnecessary text descriptions.
Who are you doing this for?
This work supports students who:
- Are blind or have low vision, for example Jacob
- Have poor contrast vision
- Are colour blind and cannot differentiate between certain colours
- Are using a device with monochrome display
- Are using a print copy that is in black and white
- Have limited Internet access and cannot download images
- Have a form of cognitive disability
What do you need to do?
Consider what your content page would look like if the images didn’t load. Now try writing alternative text for each image that would work as a replacement and provide the same information as the image.
There are three ways to provide alternative text descriptions for images:
- Describe the image in the alt tag.
- Describe the image in the surrounding text.
- Create and link to a long description of the image.
As you work on developing your alternative text descriptions, keep the following recommendations and guidelines in mind:
- Remember that alternative text must convey the content and functionality of an image and is rarely a literal description of the image (e.g., “photo of cat”). Rather than providing what the image looks like, alternative text should convey what the content of the image is and what it does.
- For relatively simple images (e.g., photographs, illustrations), try to keep your text descriptions short. You should aim to create a brief alternative (one or two short sentences) that is an accurate and concise equivalent to the information in the image.
- For more complex images (e.g., detailed charts, graphs, maps), you will need to provide more than a one- to two-sentence description to ensure all users will benefit from the content or context you intended to provide.
- Leave out any unnecessary information. For example, you do not need to include information like “image of…” or “photo of…”; assistive technologies will automatically identify the material as an image, so including that detail in your alternative description is redundant.
- Avoid redundancy of content in your alternative description. Don’t repeat the same information that already appears in text adjacent to the image.
An alt tag refers to the ALT attribute within an IMG tag. All images uploaded into Pressbooks have an alt tag, but for them to be useful, you will have to insert an image description.
Alt tags are used in two cases:
- When a person’s Internet is slow and images are not downloading, the alt tag content will display instead of the image.
- For people who are visually impaired and use screen readers, when a screen reader finds an image, it will read out the content of the alt tag.
Alt tags should be no longer than 100 characters, including spaces and punctuation. This is because when a screen reader finds an image, it will say “Graphic” before reading out the alt tag. If the alt tag is longer than 100 characters, the screen reader will interrupt the flow of text and say “Graphic” again, before continuing to read out the alt tag. This can be confusing. For images that require descriptions longer than 100 characters, see the section on long descriptions.
To edit an image’s alt tag in Pressbooks, click on the image and select the “edit” icon. Under image details, there will be two textboxes: one titled “Caption” and one titled “Alternative Text.” The “Caption” box contains the image’s caption, which appears under the image in the visual editor. The “Alternative Text” box is where you can describe the image.
You can use the surrounding text to provide the same information as provided in the image. This is often the best option for complex images because it makes the information available for everyone, not just those using the alt tags.
If you are editing someone else’s work for accessibility, you are probably not at liberty to start adding to the main text. However, if you are the author, this is the best and easiest option.
If an image has been adequately described in the surrounding text, you can either provide a few-word description of the image in the alt tag or follow the procedures for decorative images.
If an image requires a description longer than 100 characters and adding an explanation to the surrounding text isn’t an option, you can provide a link to a long description instead. To do this, you will create a section at the end of a chapter for all long descriptions and use links to allow people to easily switch between the image and its long description.
Figure 1.1 shows an image from Introduction to Sociology, 2nd Canadian Edition, that requires a longer description than what can fit in an alt tag. As such, at the end of the caption, there is a link to the image’s long description.
Anyone using this textbook can access this long description by clicking on the long-description link, which will take them to the long description at the end of the chapter (or by flipping to the end of the chapter in the print version). This will also work for people using screen readers who are navigating through the book with a keyboard.
Curious about how this works? Try clicking on the [Long Description] link in the caption of Figure 1.1.
Adding a long description to an image in Pressbooks can be complicated, but the following four steps will help guide you through the process.
Step 1: Add an alt tag
Even though you will be providing a long description, the image still needs an alt tag. In the Alternative Text textbox in the Image editor, provide a BRIEF image description (only a few words), and state that there is a long description available.
- Example: “Wong-Baker Faces pain rating scale. Long description available.”
Step 2: Insert a link to the long description in the image’s caption
Provide a link to the long description in the caption of the image.
- At the end of the caption, add “[Long Description]” to use for the link text.
- Create a unique id for the image. (In this case, it is “fig1.1”.) The id can be whatever you want, but if you have multiple images that require long descriptions, it is generally best practice to establish a convention for creating ids to keep them consistent.
The following table displays how the caption will look in the Visual-editor view and in the Image-editor view.
|Visual-editor view||Figure 1.1 The Wong-Baker Faces pain rating scale helps health care providers assess an individual’s level of pain. What might a symbolic interactionist observe about this method? [Long Description]|
|Image-editor view||Figure 1.1 The Wong-Baker Faces pain rating scale helps health care providers assess an individual’s level of pain. What might a symbolic interactionist observe about this method? <a href=”#fig1.1″>[Long Description]</a>|
Step 3: Set up the long description
- Create a “Long Description” heading at the end of the chapter. Set it as Heading 1. All long descriptions will be added to this section in the order that the images appear in the chapter.
- Under the “Long Description” heading, insert the image’s figure number followed by the long description.
- example: Figure 1.1 long description: The Wong-Baker Faces pain rating scale uses cartoon faces to illustrate the different levels of pain that correspond to a numbered scale from 1 to 10. Zero is smiling, 2 is a small smile, 4 is a straight face, 6 is a slightly sad face, 8 is a big sad face, and 10 is a bigger sad face that is crying.
Step 4: Link the long description to its image
- Insert a link at the end of the long description that will take users back to the original image. This will make it easy for people to navigate back to their spot in the chapter. For instructions on how to link between content in the same chapter, read the “How to link text within a chapter” heading in the How to Link Material chapter in the BCcampus Open Education Pressbooks Guide.
- Example: Figure 1.1 long description: The Wong-Baker Faces pain rating scale uses cartoon faces to illustrate the different levels of pain that correspond to a numbered scale from 1 to 10. Zero is smiling, 2 is a small smile, 4 is a straight face, 6 is a slightly sad face, 8 is a big sad face, and 10 is a bigger sad face that is crying. [Return to Figure 1.1]
- To link back to the image, you will need a new unique id. Images automatically have there own unique IDs, which you can use to link to them. Here is how to find an image’s unique ID:
- Search for the image in the Text editor. (You can use [Ctrl/Command] + [F], and then search for “Figure 1.1 The Wong-Baker “)
- You will see something like this:
- Copy the caption id, return to the Visual editor, and find the long description. Use the caption id as the link for [Return to Figure 1.1]
- Update (save) your chapter and test the links to make sure they work. If they don’t, double check your ids.
Now that you have reviewed the steps to add a long description to a Pressbooks image, see Chapter 8 of the Introduction to Tourism and Hospitality in B.C. open textbook to an example of what long descriptions look like in practice.
If your image does not add meaning (for example, if it is included for decorative or design purposes only) or if it is adequately described in the caption and surrounding text, it doesn’t need an alt tag. Including alternative text descriptions for decorative images “simply slows the process down with no benefit because the screen-reading software vocalizes the content of the [alternative text description], whether that alternative text adds value or not.” However, this doesn’t mean that you can leave an alt tag blank.
When a screen reader detects an image with a blank alt tag, it will read out the image file location. If the above picture about the The Wong-Baker Faces Pain Scale didn’t have an alt tag, a screen reader would say, “Graphic: https://opentextbc.ca/accessibilitytoolkit/wp-content/uploads/sites/184/2017/06/2049201506_0f9b17182a_o.jpg.” To get around this, when an image does not require an alt tag, put two quotation marks (“”) in the Alternative Text box. This will cause the screen reader to just say “Graphic” and then move on to the caption.
Consider what your images would look like if they only displayed in black and white. Would any necessary context or content be lost if the colour was “turned off”? Images should not rely on colour to convey information; if the point you are making depends on colour to be understood, you may need to edit your image or formatting so that concepts presented are not lost to those who are colour blind or who require high contrast between colours.
Example 1 — not accessible
In this basic bar chart, colour is the only means by which information is conveyed. For students who are colour blind, have poor contrast vision, or are using a black-and-white print copy, all of the relevant information is lost.
Example 2 — accessible
Students who are colour blind can distinguish between high-contrast shades. In this example, contextual labels have been added to each bar at the bottom of the chart. Note that the chart will still require an alt tag.
Long description example
Figure 1.1 long description: The Wong-Baker Faces pain rating scale uses cartoon faces to illustrate the different levels of pain that correspond to a numbered scale from 1 to 10. Zero is smiling, 2 is a small smile, 4 is a straight face, 6 is a slightly sad face, 8 is a big sad face, and 10 is a bigger sad face that is crying. [Return to Figure 1.1]
- "Web Content Accessibility Guidelines (WCAG) 2.0: Guideline 1.1," W3C, accessed March 27, 2018, http://www.w3.org/TR/WCAG20/#text-equiv. ↵
- "Web Content Accessibility Guidelines (WCAG) 2.0: Guideline 1.4.1," W3C, accessed March 27, 2018, http://www.w3.org/TR/WCAG20/#visual-audio-contrast. ↵
- "Alt text blunders," WebAIM, accessed March 27, 2018, http://webaim.org/articles/gonewild/#alttext. ↵
- "Top 10 Tips for Making Your Website Accessible," UC Berkeley: Web Access, accessed March 27, 2018, https://webaccess.berkeley.edu/resources/tips/web-accessibility#accessible-alt. ↵