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
- 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.
- Treat the image as decorative if it is only a border, divider, background texture, or a stock photo that repeats nothing and explains nothing.
- Check the context. A logo that links to the home page is not decorative, because it has a job. A chart is never decorative.
- Check whether the same information is already in nearby text. An icon beside a label that says the same thing can be decorative.
- 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.
- 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.
- 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.
Related guides
The same task in other applications
- Add actual text and expansion text in Acrobat
- Add alt text to figures in a PDF with Acrobat
- Add alt text to an image or chart in Excel
- Add a chart title, axis titles and data labels in Excel
- Add alt text to a PivotTable in Excel
- Add alt text to an image in InDesign
More for General
- Offer an accessible alternate format when a file cannot be fixed
- Avoid using color as the only signal
- Give a complex image a long description or accessible alternate
- Check color contrast against WCAG AA (4.5:1 and 3:1)
- Describe a chart or graph: alt text plus a data table
- Why every document needs a title and a language