Skip to main content

Decide whether an image is decorative

General · All · Last updated

Part of training module 3: The ideas that apply everywhere: structure, text alternatives, colour

A decorative image adds no information, so you mark it to be skipped by screen readers instead of giving it alt text.

Steps

  1. Look at the image and ask: if it were removed, would a reader lose any information? If yes, it is not decorative. Give it alt text: see Write good alt text for an image.
  2. Treat the image as decorative if it is only a border, divider, background texture, or a stock photo that repeats nothing and explains nothing.
  3. Check the context. A logo that links to the home page is not decorative, because it has a job. A chart is never decorative.
  4. Check whether the same information is already in nearby text. An icon beside a label that says the same thing can be decorative.
  5. When in doubt, ask what you would say if reading the page aloud to someone. If you would not mention the image, mark it decorative.
  6. Use your application's decorative setting for the image. Each app names it differently, so look in the alt text area for a checkbox or option with that word.
  7. If you can, replace a purely decorative image with a style or a background so there is nothing to mark.

Check it worked

  • The accessibility checker no longer lists the image as missing alt text.
  • A screen reader skips the image. You can confirm this with a quick listen: see Do a five-minute screen reader check with NVDA.
  • If you deleted the image, the page would still say everything it needs to.

Common mistakes

  • Marking a meaningful image as decorative to make a checker error go away. This hides information from some readers.
  • Typing a space or "decorative" into the alt text box. Use the proper setting instead.
  • Calling a photo decorative when it supports the point of the page, such as a picture of the actual building being described.

The same task in other applications

More for General