
Image Alt Text: A Decision Tree for WCAG and SEO
Two opposite errors account for many alt text failures — empty alt where description is needed, or verbose description where empty alt is correct. The W3C image decision tree applied at the CMS level.
TL;DR: Two opposite errors account for many alt text failures — empty alt where description is needed, or verbose description where empty alt is correct. The W3C image decision tree sorts single images into five main types — decorative, informative, functional, complex, text — each with a different alt rule. WCAG 2.1 SC 1.1.1 Non-text Content is the load-bearing criterion. This guide walks the main image types with concrete examples, explains the alt vs aria-label vs title vs figcaption choice, and reconciles accessibility alt with image SEO so you do not have to choose between them.
Why alt text is easy to get wrong in both directions
Every CMS author has hit one of two patterns. The first: an "image of a smiling person at a laptop" alt on a decorative hero next to its own visible heading — the screen reader announcement is noise, not content, and the user hears the same idea twice. The second: a missing alt on a logo that links to the homepage — some screen readers fall back to reading the filename ("logo_v3_final-2.png"), which is worse than silence.
Both are common because case-by-case judgment about every image at content-entry time is hard. CMS authors are not accessibility specialists. Decisions are made under deadline pressure, across many images. The path to consistent results is not training every author into accessibility expertise — it is putting a decision tree at the CMS level so the right behavior is the default, with explicit exits for the cases the tree does not cover.
SC 1.1.1 Non-text Content at Level A is the alt text criterion. It requires that all non-text content presented to the user has a text alternative that "serves the equivalent purpose," except in the situations the criterion lists. Controls and input need a name that describes their purpose (SC 4.1.2 adds further requirements). For time-based media (Guideline 1.2 adds further requirements), for tests or exercises that would be invalid if presented in text, and for content primarily intended to create a specific sensory experience, such as art, the text alternative must at least provide a descriptive identification of the content. For CAPTCHA, the criterion asks for a text alternative that identifies and describes its purpose, plus alternative forms of CAPTCHA that use output modes for different types of sensory perception, to accommodate different disabilities. Content that is pure decoration, used only for visual formatting, or not presented to users must be implemented so assistive technology can ignore it — for a decorative <img>, empty alt (alt="") does that.
The W3C image types — five for single images
The W3C Images Tutorial covers seven image types. Five of them apply to single images, and the type depends on how the image is used in its context, not on the image file itself:
| Category | What it is | Alt rule |
|---|---|---|
| Decorative | Conveys no information beyond surrounding text | `alt=""` |
| Informative | Conveys content not duplicated in text | Concise description of the information |
| Functional | The visual for a control or link | Describes the action/destination |
| Complex | Conveys substantial information (chart, diagram) | Short alt + long description elsewhere |
| Text | Image of text | Repeat the text exactly; avoid text in images unless it is a logo |
The remaining two cover groups of images and image maps. When several images together convey one piece of information, such as a star rating, only one image carries the alt for the whole group and the others get alt="". When the images are a collection of related images, each image gets its own alt describing it and its relationship within the group, and <figure> with <figcaption> can caption the set. An image map is one image divided into clickable regions: the <img> alt conveys the overall context, and each <area> gets its own alt describing where its link goes or what action it triggers.
The "pretend the image was removed" test distinguishes decorative from informative quickly. If the page still conveys the same information without the image, the image is decorative and alt="" is correct. If something is lost, the image is informative and needs description.
Decorative images and the alt='' rule
Empty alt (alt="") is the right answer when the image adds no information beyond the surrounding text. A divider line, a stock-photo hero next to its own visible heading, a background pattern that frames a section — all decorative.
<!-- Decorative: alt='' tells assistive tech to skip the image. -->
<img src="hero-decoration.jpg" alt="" />
<!-- Informative: the chart is the content. -->
<img src="revenue-q3.png"
alt="Q3 revenue rose 12 percent year over year, with EMEA contributing the largest gain." />Empty alt is not the same as missing alt. With alt missing, some screen readers announce the filename instead — usually worse than silence. The alt="" syntax explicitly tells the screen reader to skip the image; missing alt leaves the screen reader to guess.
role="presentation" and aria-hidden="true" are alternatives to alt="" in some cases, but they carry edge cases. aria-hidden="true" on an image inside a link removes the image from the accessibility tree but the link remains focusable, so if the image was the only labeling content, the link becomes unannounced. For straight decorative images outside interactive elements, alt="" is the simplest and most consistent pattern.
Informative and complex images — what to actually write
For informative images, three rules apply.
Concise. W3C's Images Tutorial asks for the most concise description possible of the image's purpose, and points to long-description methods when more than a short phrase or sentence is needed. A 125-character cap is an editorial rule of thumb, not a WCAG rule — long alts are not violations, but an alt is read as a single string without headings or structure, and listening to a paragraph-long alt while trying to consume the surrounding content is fatiguing. If the image needs a longer description, that becomes a complex image, not a long-alt informative image.
Specific. Describe the information the image conveys, not the appearance. "Q3 revenue rose 12 percent year over year" beats "bar chart in blue with four columns." The point of the alt is to give screen reader users access to the same information sighted users get from the image — and what sighted users actually take away is the data, not the visual presentation.
No "image of," "photo of," "graphic showing." Screen readers typically announce the element as an image or graphic, so the prefix repeats information. Prefixing the alt with the word adds redundant noise. Exception: when the type itself is the information ("Photograph of the building's south facade in 1960" is fine because the year and medium are part of the content).
For complex images — detailed diagrams, organizational charts, architectural floor plans — a short alt plus a long description is the standard pattern. The long description can be on the same page, associated with the image (for example, inside a <figure>), or on a separate page reached through an adjacent link. aria-describedby can also point to it, but only when the description is text only, because the referenced content is read as one continuous paragraph without its headings or tables:
<figure>
<img src="org-chart-2026.png"
alt="Example Co. organizational chart"
aria-describedby="org-chart-description" />
<figcaption>Example Co. organization</figcaption>
</figure>
<div id="org-chart-description">
<p>The CEO has three direct reports: Engineering (with 4 sub-teams), Design,
and Operations. The Engineering Director reports to the CEO and oversees
Frontend, Backend, Infrastructure, and Quality teams...</p>
</div>The longdesc attribute is obsolete in the HTML standard, which points to a regular link to the description instead (or, for an image, an image map that links to it). For a text-only description on the same page, W3C's Complex Images tutorial also shows aria-describedby, as in the example above.
Functional images — describe the action, not the picture
A functional image is the visual for a control or link. The alt describes what the control does or where the link goes, not what the image looks like.
<!-- Wrong: describes the appearance, not the function. -->
<button><img src="search.svg" alt="magnifying glass icon" /></button>
<!-- Right: describes the action. -->
<button><img src="search.svg" alt="Search" /></button>
<!-- Better: SVG icon with aria-hidden, button has aria-label. -->
<button aria-label="Search">
<svg aria-hidden="true" focusable="false">...</svg>
</button>A logo that links to the homepage gets an alt describing the destination — alt="Iropke home". W3C's functional-images example adds "home" so the alt states where the link goes. When the same logo appears on the homepage itself, where it does not function as a link, alt="" is appropriate only if the company name appears as visible text right next to it; otherwise the logo is informative and alt="Iropke" is the safer default.
Image inside a link with adjacent text is a frequent source of duplication. If the link has visible text plus a decorative icon, the icon should have alt="" to avoid double-announcement:
<a href="/download">
Download report
<img src="arrow-down.svg" alt="" />
</a>The link's accessible name is "Download report"; the decorative arrow adds nothing to it, which is exactly what should happen.
For SVG icons inside buttons, support for the SVG <title> element as an accessible name has varied across browser and screen reader combinations. A robust pattern is aria-label on the button (or the surrounding link) and aria-hidden="true" on the SVG itself, which removes the SVG from the accessibility tree and lets the button's accessible name carry the meaning.
alt vs aria-label vs title vs figcaption
Five attributes and elements get used for image labeling. They are not interchangeable.
| Attribute or element | Use for | Notes |
|---|---|---|
| `alt` | Canonical accessible name for `` | Always start here |
| `aria-label` | Name the `` (or link) that wraps a hidden ``, or where alt cannot be authored | Usually unnecessary on `` itself |
| `title` | Tooltip — never the primary label | Not reliably exposed by all assistive tech |
| `` | Visible caption inside `` | Complements alt; does not replace it |
| `longdesc` | Obsolete in HTML | Link to the description instead; `aria-describedby` for a text-only on-page description |
alt is the canonical accessible name for an <img> element. Always start here. Reach for aria-label only when the image is part of a more complex labeling situation — typically an SVG inside a button, where the button itself can carry the label and the SVG should be hidden.
title is the browser's tooltip attribute. Some screen readers expose it, others ignore it, and because the tooltip usually needs a mouse hover, keyboard-only and touch-only users often never see it. Never use title as the primary way to label an image.
<figcaption> is the visible caption inside a <figure>. It complements alt rather than replacing it. The image's accessible name comes from its alt; the figcaption is a separate visible caption, so the safe approach is to make sure the alt and figcaption do not duplicate — the alt describes the image content, the figcaption provides additional context (source, date, photographer) that a sighted user also benefits from.
<figure>
<img src="office.jpg" alt="A city office building, viewed from across the courtyard at dusk." />
<figcaption>The office, photographed in winter.</figcaption>
</figure>longdesc was historically a URL pointing to a long description file. It is obsolete in the HTML standard, which recommends a regular link to the description instead. For a text-only description on the same page, aria-describedby can point to it (a hidden div, a sibling paragraph, or a visible long-form description elsewhere on the page); because the referenced content is read as one continuous paragraph, a description with headings or tables needs a link or a <figure> instead.
Alt text and image SEO — reconciling two requirements
Alt text serves two purposes: accessibility and image search ranking. Google's image SEO guidance says Google uses alt text, together with computer vision and the content of the page, to understand what an image shows — and that alt text is useful as anchor text when the image is a link (as of Oct 2026, Google Search Central).
The good news: the accessible alt is usually also the SEO-friendly alt. Both requirements ask for natural-language descriptions of the information the image conveys. Both reject keyword stuffing — Google's guidance warns that stuffed alt may cause a site to be seen as spam, and stuffed alt creates an actively worse experience for screen reader users.
Where SEO and accessibility seem to conflict, accessibility wins. Alt rewritten around keywords until it no longer serves the equivalent purpose of the image fails SC 1.1.1. "Buy cheap shoes online sale shoes shoes" is bad alt for both purposes — Google warns that keyword stuffing may cause a site to be seen as spam, and screen reader users hear gibberish.
Where keywords belong is in the surrounding text, the figcaption, the page title, and the schema.org ImageObject if you mark it up — not duplicated in alt. Google's guidance says it extracts information about an image from the content of the page, including captions and image titles, and advises placing images near relevant text. We could not confirm from Google's documentation how it weighs alt against that page context; a working hypothesis, not a documented rule, is that keyword choices in alt carry less weight than they appear to.
We could not confirm how image search or AI answer engines weigh alt against other page signals. A working hypothesis, not a documented rule, is that alt matters most where the image is itself the search destination and where an answer engine reads a page's text, which can include alt — and that in both cases clear descriptive language serves better than keyword density. Optimize for clarity and the SEO follows.
Audit criteria for your images
Image alt is concentrated at the CMS level. In many CMS setups alt is entered when the image is uploaded or inserted, so the leverage point is the CMS field design and the author guidance.
- Run an automated audit (axe DevTools or Lighthouse) — flags missing alt
- Sample a set of images across templates (for example, 20-30) and apply the W3C decision tree manually — automated tools cannot tell informative from decorative
- Add alt validation to your CMS — required field with an explicit "this image is decorative" checkbox, not a default-empty input that can be saved blank
- Audit functional images specifically — icon buttons, logo links, image hyperlinks. Here missing or wrong alt can leave a control or link with no usable name
- Audit any image-of-text instances against SC 1.4.5 Images of Text at Level AA — where the technology can achieve the same visual presentation, use real text instead of images of text, except for images of text that can be visually customized to the user's requirements and those where a particular presentation of text is essential to the information being conveyed, such as logotypes
- Document an alt text style guide for content authors — a short list of rules plus example pairs (image + acceptable alt) covers the common cases
The decision tree at the CMS level plus a short author style guide covers the long tail of cases that automated tools cannot.