Skip to Content

Alt text should appear on some images

Accessibility

Alt text describes briefly the content of a photo or other image via a screen reader, where that image has a purpose that is informative. 

Reason

Best practice

Students from diverse racial groups and of different genders gather in the comfortable Library lounge at Carleton

When, for example, the image above is used on a page that is aiming to help recruit students it requires alt text. In this example, the alt text used reads:

Students from diverse racial groups and of different genders gather in the comfortable Library lounge at Carleton

One area of practice that can help with usability as well is considering this: If you are using the image on a page and you think that people using screen readers do not need to have this information read to them, then does the image have a purpose at all, even for those who aren’t using a screen reader?

Example of less accessible practices

One example of a way to not use is when identifying the people in an image.

An elderly, grey-haired black man wearing a colourful tunic shakes hands with a slightly younger black man wearing a suit.

This is not the correct alt text to use with this image: Pele (left) and Nelson Mandela (right)

In this situation is better to have alt text that reads: An elderly, grey-haired black man wearing a colourful tunic shakes hands with a slightly younger black man wearing a suit.

You can also add a caption to describe them in other ways: Ernest Hemingway, the great American writer, with revolutionary leader of Cuba, Fidel Castro.

Additional benefits

What WCAG says

Robotic scans cannot discern if an image in general use is purely decorative or if it is informative. Therefore there is no error listed in WAVE.

(Be sure to learn more about errors and alerts.)

From WCAG:

“In some situations a detailed literal description may be needed, but only when the content of the image is all or part of the conveyed information.”

You can consult WCAG’s decision tree to see all options around alt text. 

Learn more about WCAG says about this issue