Alternative text (alt text) is a textual description of an image that is
conveyed to users who cannot see it — including screen reader users, users on
slow connections, and search engines. Providing meaningful alt text for all
non-decorative images is one of the most fundamental accessibility requirements.
[1]
Informative images convey information that is not available in surrounding
text. Write alt text that conveys the same information as the image.
[2]
Decorative images add visual interest but convey no information. Use an
empty alt attribute: alt="" — this tells screen readers to skip the image
entirely. Do not omit the alt attribute — a missing alt causes screen readers
to announce the filename.
Functional images are used as links or buttons. The alt text should describe
the action, not the image. A magnifying glass icon inside a search button should
have alt="Search", not alt="Magnifying glass".
Complex images such as charts, graphs, and diagrams require a longer
description. Provide a brief alt text and a full description nearby in the page,
or link to a separate page with the description.
Text images should be avoided wherever possible. If an image contains text,
the alt text must contain exactly that text.
SVG images used inline should include a title element and role="img":
Icon fonts (such as Font Awesome) rendered via pseudo-elements should have
their container marked with aria-hidden="true" and an accompanying visually
hidden text label.
[3]
Missing alt attribute. Screen readers will announce the image filename —
often something like "img_20240312_143022.jpg" — which is meaningless.
Generic alt text. Alt text such as "image", "photo", or "graphic" provides
no information. Describe what the image actually shows.
Redundant alt text. If the image caption or surrounding paragraph already
describes the image fully, use alt="" to avoid repetition.
Last edited Apr 5, 2026, 7:18 PM · P**** J****