How do I keep a caption and alt text from repeating each other?
Quick answer
Give the two pieces different jobs, guided by what the image adds to its page. Alt text should convey the image’s essential information or function in context—not necessarily list every visible detail. A caption can add useful context, attribution, or interpretation. Compare both with nearby text, keep facts consistent, and remove needless duplication. If a web image is purely decorative, it needs no alternative text.
The question, the details, the next step.
A practical checklist
Write down why the image appears on the page.
Note what nearby text already communicates.
Draft alt text for the image’s essential information or function in context.
Give the caption a distinct, useful contribution where appropriate.
Compare the drafts, remove needless repetition, and check that facts agree.
Decide whether the web image is informative, functional, or purely decorative.
A few more useful answers
Is it always wrong for the caption and alt text to share words?
No. The goal is useful information, not different wording for its own sake. Some overlap may help clarity, but avoid duplicating the entire message when each piece can contribute something useful.
Should alt text describe everything visible in the image?
Not necessarily. Write for the image’s meaning or function in the page context; a complete visual inventory may not convey what matters. [S1]
Does a decorative web image need alt text?
W3C says purely decorative web images need no alternative text. Decide whether the image adds information or performs a function in context. [S2]
Sources
References used for this guide.
- [S1] W3C WAI Images Tutorial: Informative Images w3.org · Checked
- [S2] W3C WAI: Writing for Web Accessibility – Tips for Getting Started w3.org · Checked
