Alt Text
A text description of an image.
See it on the 3D treeGoing deeper
Good alternative text conveys the image's purpose in its context, so one photograph may need different wording on different pages. A linked or button image should describe the destination or action. Decorative images take an empty alt attribute so they are skipped. Complex charts usually need a longer explanation nearby.
Why it matters
It gives people who cannot see an image the same information, and shows it when the image fails to load.
In practice
For a magnifying glass icon used as a button, the alternative is Search, not Magnifying glass.
Common mistake
Leaving the alt attribute off decorative images, which can make a screen reader announce the file name.
Connected terms
- AccessibilityText alternatives are one of its most basic requirements.
- POURA basic way of making images perceivable.
- Screen ReaderReads the alternative aloud or in braille in place of the image.
- AvatarAn avatar that identifies someone needs a text equivalent.
- Semantic HTMLThe alt attribute is part of marking up images meaningfully.
- UX WritingWriting useful alternatives takes the same care as other interface text.