Accessibility checks

Image alt text: when to describe an image and when to leave it empty

Alternative text (the alt attribute) is a short description of an image that may be displayed when the image fails to load—and, most importantly, is read aloud by a screen reader to a blind customer. It may sound like a small detail, but on an online shop full of product photographs, icons and banners, it is one of the areas where barriers arise unnecessarily.

A common problem: every image gets the same type of description

Three mistakes recur in practice with alternative text.

It is missing. For a product photograph without an alt attribute, a screen reader may announce the file name—“IMG_4837.jpg”—or skip the image. As a result, the customer may not know what the image shows.

It is added unnecessarily. A decorative line, a shadow beneath a card or an icon next to text that already conveys everything is given the description “image” or “decoration”. The screen reader reads this for every element, turning the shopping experience into a stream of meaningless chatter.

It is stuffed with keywords. “cheap men’s winter outdoor jacket sale online shop”—text written for a search engine, not a person. A description like this does not help anyone understand the purpose of the image.

The common cause is that no one distinguishes what each image is there to do on the page. Everything else follows from that.

How to choose alternative text based on the image’s purpose

The rule is simple and can be applied to any image: ask what role it plays on the page.

Configured automated checks can alert you to a missing alt attribute. Whether the text is meaningful for the image’s purpose, however, must be assessed by a person; automated scanners have limitations in this area.

What accurate descriptions give you

Next step

Not sure whether your images have meaningful descriptions—or any descriptions at all? During a no-obligation consultation, we will agree the scope of an initial scan and show you where missing descriptions create a barrier.

Related topics

You might also be interested in

Catch new accessibility issues during the release process

Automated checks may highlight new machine-detectable errors in already checked parts at release.