Skip to Content

Alt text should appear on some images

Accessibility

Alternative text (alt text) provides a written description of images so that people who cannot see them can still understand their meaning.

Reason

Screen readers read alt text out loud to describe images. Without it, users may miss important information or context that images provide.

Best practice

There should be no confusion between alt text and a caption. Caption specifies, for example, who or what is identifiable in a photo. Alt text gives a physical description. So for example:

An older black man in a white shirt and with grey hair is embraced by a man in military fatigues, sporting a large grey beard
President of South Africa Nelson Mandela meets with President Fidel Castro of Cuba

This is good practice: the alt text describes the images so the user with a screen reader knows what kind of people are being described – gender, race, age, clothing. Meanwhile, the caption identifies the people and their positions.

Example of poor practice

An older black man in a white shirt and with grey hair is embraced by a man in military fatigues, sporting a large grey beard
Two men, one is black, one is hispanic. The man on the left wears a white shirt.

In this example, there are issues with the alt text and the caption:

The other side is adding alt text where none is needed. If this picture is used on a page about the sea:

Image of the sea. It's blue and it has waves.

it does not require any alt text – it is purely decorative, not illustrative. It certainly doesn’t need the alt text we placed on it: Image of the sea. It’s blue and it has waves.

Additional benefits

Alt text supports accessibility and improves how content works across different devices and platforms.

Usability

Helps all users understand images when they don’t load or when browsing quickly.

SEO

Search engines use alt text to understand images, which can improve visibility in search results.

Marketing

Ensures key messages in visuals are communicated clearly to all users.

What WCAG says

“When using the img element, specify a short text alternative with the alt attribute… the alt text should convey the same meaning as the image.”

Checklist