Skip to content

Alternative text

Alternative text conveys an image’s meaning or function in context. Purely decorative images need different treatment.

Also known asAlt text
Design & UX

Convey the relevant image information

Alternative text is a text substitute for an image's relevant meaning or function. For an HTML image, it is usually provided through the alt attribute. What it should say depends on how the image is used.

If an example product photo shows a device's connector, the connector type may matter for selection. If the same image is the sole link to a data sheet, its accessible name must communicate that destination. “Image of a device” is of little help then.

A purely decorative HTML image generally uses alt="" to avoid unnecessary announcements. For a complex chart, essential information must also be available as accessible content. Alternative text is neither a list of search keywords nor automatically the image caption.

Sources

Articles on this topic

Design & UX with ASES

User experience, interfaces and brand presence