The hard part of alt text is not writing the description — it is deciding whether one should exist. Describe everything and a screen reader user hears a travelogue of swooshes, dividers and stock photos before reaching the content. Describe nothing and the chart that carries the argument is announced as silence. Classify first: decorative, functional, or informative — then write, or deliberately write nothing.
The decision comes before the description
The W3C alt text decision tree asks, in order: does the image contain text, is it a link or button, does it contribute meaning, and is it purely decorative. A purely decorative image gets an empty alt attribute (alt=””) so assistive technology skips it — and leaving the attribute out entirely is worse, because some screen readers then announce the file name. A functional image — a linked icon, a button — takes alt text naming the destination or action, not the picture. WCAG 1.3.1 requires the purpose to be programmatically determined, not guessed from appearance. See also our dark mode check.
Expected result. We checked the sources listed below. We did not run any design tool or browser on the Maple Corner design.
The table below is fictional practice material: six items in a Maple Corner design. Results are practice values for the exercise.
Practice alt-text check: fictional Maple Corner home page
| Image | Alt-text decision | Result |
|---|---|---|
| Wave divider | Decorative, alt="" | Pass — skipped by screen readers |
| Coffee photo by heading | Decorative mood photo, alt="" | Pass |
| Linked logo | Functional, alt names the home page | Pass |
| Price chart | Informative, alt gives the key message | Pass |
| Flourish swoosh | Decorative, described as “golden swoosh” | Fail — decoration must be empty alt, not described |
| Icon button | Functional, no alt attribute at all | Fail — missing alt is announced as a file name |
4 of the six items pass, and 2 fail. The passing items share one property: they were checked against the rule before the design was finished, not after. The failing items are the ones to fix first — each has its fix named in the table.
How to fix it
Walk the decision tree for every image: text in the image, link or button, meaning, decoration — first yes decides. Give decorative images an explicit empty alt, give functional images the action or destination, and give informative images one short sentence with the key message, with details as real text beside the image.
Limits
- No design tool or browser was run on the Maple Corner page, and Maple Corner is fictional. The table above is the expected result for the practice items, not a test of any product.
- Whether an image is decorative is a judgement only the author can make, based on why the image is on the page.
- This guide decides alt text for images in a design. Complex images such as charts need a short alt plus the details as text nearby.
Sources
- W3C Alt Text Decision Tree — W3C — Checked 2026-11-28.
- Understanding Success Criterion 1.3.1: Info and Relationships — W3C — Checked 2026-11-28.
