Skip to content
easeweb
Search topics

Missing alt text on images that carry information

A sale banner has its offer drawn into the picture with no alt, and the care icons under a product are all labelled "image".

WCAG 2.2
SC 1.1.1A
Required by
Section 508 · EN 301 549 (EU)
Broken <img src="kiln-sale.jpg">
The accessibility problem illustrated: No vision:Kiln-sale.jpg?
01

The problem

Screen reader users miss whatever an image tells, such as a sale or a safety warning

02

Try it

Turn the images off and see what is left

The panel shows what a screen reader reads. Can you still find the sale, its end date and the care advice?

Simulate Images off

Broken Can you fix this?

BrokenThe message drawn into images with no useful alt

Speckled mug

imageimageimage

Screen reader says:

  1. kiln-sale.jpg, image
  2. Speckled mug, heading
  3. image, image
  4. image, image
  5. image, image

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Give each image that tells something a text alternative

Before
BrokenThe message drawn into images with no useful alt
<section class="banner">  <img src="/images/kiln-sale.jpg"></section> <h1>Speckled mug</h1><div class="care">  <img src="/icons/dishwasher.png" alt="image">  <img src="/icons/microwave.png" alt="image">  <img src="/icons/no-oven.png" alt="image"></div>
What is wrong2 points
  • Screen reader users never hear the sale. The banner has no alt, so the offer it shows has no text equivalent, and the screen reader reads the file name or nothing.
  • Screen reader users hear "image" three times and miss the "not oven safe" warning. The icons have an alt, but "image" says nothing about care.
After

Write the message in the alt text

<section class="banner">  <img src="/images/kiln-sale.jpg"    alt="Kiln sale: 30% off all mugs until Sunday."></section> <h1>Speckled mug</h1><div class="care">  <img src="/icons/dishwasher.png" alt="Dishwasher safe">  <img src="/icons/microwave.png" alt="Microwave safe">  <img src="/icons/no-oven.png" alt="Not oven safe"></div>
How it is fixed2 steps
  1. Give the banner an alt with the same words the picture shows. It describes the message, not the mugs in the photo, because the message is why the image is there.
  2. Replace each icon's "image" with what that icon means for this mug.

Only the alt attributes change. A screen reader now reads "Kiln sale: 30% off all mugs until Sunday, image" and "Dishwasher safe, image", and the same words are shown if the images fail to load. This fixes the Before and passes 1.1.1.

04

Verify the fix

4 checks, no mouse.

Test with: Screen reader

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat whenever a banner, an icon set or the shared image component changes.

Limits

This is a starting pattern, not a guarantee for every application. Paths and class names in the snippets are placeholders. Whether an alt is right depends on the image and its context, and only a person who knows both can judge it, so keep alt text in your publishing review, and have the tool that publishes images ask for it, as image uploads that never ask for alt text explains. Test the complete journey with your target assistive technology.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service