Alternative text
Alt text is the copy a screen reader announces in place of an image, icon, or chart. In a data-heavy product, most “images” are meaningful — a chart, a status icon, an avatar — so getting alt text right is part of writing, not an afterthought.
The one question to ask
Before writing alt text, decide what the element is doing. If it conveys information, describe the information. If it's decorative, hide it from assistive tech entirely so it doesn't add noise.
| If the element is… | Then… |
|---|---|
| Informative (a status, a trend) | Describe the information it conveys, not its appearance. |
| Functional (an icon button, a logo link) | Describe the action or destination, not the picture. |
| Decorative (a background flourish) | Give it empty alt (alt="") or aria-hidden so it's skipped. |
| Complex (a chart, a diagram) | Give a short summary, and put the detail in nearby text or a table. |
Icons
An icon's alt text should match the action a sighted user understands — which is the visible verb, not the shape of the glyph. Decorative icons beside a text label need no alt at all.
Charts & data visualizations
A chart's job is to answer a question. The alt text should give that answer, not narrate the geometry. Pair it with an accessible data table or nearby figures for the detail.
Lead with the takeaway — the number or trend the chart exists to show.
Don't describe colors and shapes; they mean nothing to a screen-reader user.
Offer the underlying data as a table or text for anyone who needs the detail.
Don't leave a meaningful chart with empty or auto-generated alt.
Avatars & people
Avatars stand in for a person. Announce who, not what the picture looks like — and skip it when the name is already shown next to it.
Writing good alt text
The mechanics that keep alt text useful and unobtrusive.
Keep it short — a phrase, not a paragraph. Screen readers read every word.
Don't start with “Image of…” or “Icon of…”; the screen reader already says it's an image.
Match the tone and terminology of the rest of the UI (“Plan”, not “BCP”).
Don't stuff keywords or repeat the surrounding caption verbatim.