What is the purpose of adding alternative test alt text to an image in your document?

Written in collaboration with Sandi Arendalkowski of the Center for User Experience.

We all know that we should use alternative text to make our documents and web content more accessible, but what makes alternative text effective? This article offers 3 tips.  Before we get to them, let’s talk about what alternative text is and where you find it.

What is alternative text?

Alternative text describes in words the non-text elements of a webpage or document, such as photos, drawings or charts. You can add it as the form of an alt attribute and as captions.

The Alt attribute

The alt attribute contains a (usually) hidden description, as in HTML’s alt attribute which looks like this:

Don’t be intimidated by the HTML example; the page editor in WordPress, used by WiscWeb CMS, provides an easy way to add alternative text to your images, as do most modern web editing tools. Likewise, many applications in which you produce documents also support an easy way to do so, as in Microsoft Office’s Edit Alt Text feature.

Captions

A caption is a text description of an image or graphic that is visible to all users to read and is also readable via screen reader. It appears as a short description within the content of a webpage or document below the image or graphic. For example, the caption below this photo is an example of alternative text.

What is the purpose of adding alternative test alt text to an image in your document?
Students getting help at the Level 1 Help Desk

Be brief

Provide enough information for users to enjoy the image and act on the information it provides, the same way a vision-abled user would. Make it a sentence or less and avoid extraneous words like “photo of,” “image of,” “screenshot of.” 

What is the purpose of adding alternative test alt text to an image in your document?

Here is an example of alternative text for an image of Bascom Hill: “Bascom Hill in fall with students walking in the grass.”

Consider the context

Context alters how alt attribute text and captions should be written. For example, an image of a computer might need only “Windows PC” or “Macintosh computer” as alternative text.

What is the purpose of adding alternative test alt text to an image in your document?

However, if a similar image appears on a purchasing website, it’ll be helpful to include more information, such as “2020 iMac Pro” or “Dell Inspiron 3670 MT.”

What is the purpose of adding alternative test alt text to an image in your document?

Or, If an image is used in a troubleshooting guide the alternative text might read “Windows blue screen error” because in this context, the computer itself isn’t the most important detail.

What is the purpose of adding alternative test alt text to an image in your document?

Don’t be redundant

If you’ve already described the content of an image or photo in a caption, don’t repeat that description verbatim in the alt attribute; include abbreviated alternative text in the alt attribute so the users of screen readers know to what the image refers.

This article covered only a few basics. The links above and below go into a lot more detail, such as decorative images which need no alternative text at all. Please check them out.

More information:

webaim.org/techniques/alttext/

Get help

  • Request an Accessibility Evaluation of a campus digital resource.
  • Contact the Center for User Experience for questions or assistance with digital accessibility and usability.
  • For more information on accessibility, resources go to the Get Help With Accessibility guide.


Images must have alternate text

Rule ID: image-alt

User Impact: Critical

Guidelines: WCAG 2.1 (A), WCAG 2.0 (A), Section 508

How to Fix the Problem

Ensure all informative

  • Using an aria-label i.e.
  • Using an aria-labelledby attribute i.e.
  • Alt Text Writing Tips

    When writing alt text, keep in mind that its purpose is to relay information to blind users about the image’s contents and purpose - blind users should be able to get as much information from alt text as a sighted user gets from the image itself. Alt text should give the intent, purpose, and meaning of the image.

    When writing alt text, it is helpful to keep the following questions in mind:

    • Why is the non-text content here?
    • What information is it presenting?
    • What purpose does it fulfill?
    • If I could not use the non-text content, what words would I use to convey the same information or function?

    Be sure that all text contained in the attribute is useful. Words like "chart," "image," "diagram," or image file names tend not to be very useful and thus should not be used in alt text.

    Decorative Elements

    Provide "null" alt attributes (using alt="") for images which do not provide information or do not require alternative text because the image is described in the page content. Some developers will mistakenly leave off the alt attribute altogether on images which they deem do not need alternatives. This is not helpful to assistive technology users because the assistive technology, such as screen reader, will often read the source attribute (i.e., file name) as the alternative text. To tell assistive technology to ignore an image, use a "blank alternative text" attribute: alt="".

    Example:

    What is the purpose of adding alternative test alt text to an image in your document?

    Why it Matters

    Screen readers have no way of translating an image into words that gets read to the user, even if the image only consists of text. As a result, it's necessary for images to have short, descriptive alt text so screen reader users clearly understand the image's contents and purpose.

    If you can't see, all types of visual information, such as images, are completely useless unless a digital text alternative is provided so that screen readers can convert that text into either sound or braille. The same is true in varying degrees for people with low vision or color-blindness.

    When you do not provide an acceptable alternative that works for their available sensory modalities, such as making an image accessible by providing a digital text description, screen readers cannot convert it into speech or braille to make it available by sound or touch.

    Rule Description

    All images must have alternate text to convey their purpose and meaning to screen reader users.

    The Algorithm (in simple terms)

    Ensures that every element has alternative text and either role="presentation" or role="none" (ARIA 1.1).

    What is the purpose of adding alt text to an image in your document?

    Alt Text helps people with visual impairments understand pictures and other graphical content. When someone uses a screen reader to view documents, they will hear Alt Text; without Alt Text, they will only know they've reached a picture without knowing what the picture shows.

    What is the purpose of adding alternative text alt text to an image in your document what is the purpose of adding alternative text alt text to an image in your document?

    Also called alt tags and alt descriptions, alt text is the written copy that appears in place of an image on a webpage if the image fails to load on a user's screen. This text helps screen-reading tools describe images to visually impaired readers and allows search engines to better crawl and rank your website.

    What is the purpose of adding alternative text alt text to an image in your document Mcq?

    Alt text uses: Alt attributes enable screen readers to read the information about on-page images for the benefit of a person with complete lack of sight, visually impaired, or who is otherwise unable to view the images on the page. Alt text will be displayed in place of an image if an image file cannot load.

    What is the purpose of adding alternative text to an image in your document Linkedin?

    You can add alternative text (alt-text) to the images you share on your feed or embed in articles. This allows members using voice-over screen readers to understand what's in the image (alt-text won't be visible to members not using screen readers).