Accessible images and SEO: choose alt text in context

At a glance

A text alternative should convey useful information or an action in the page. The same image may need different wording, or an empty alternative, depending on its role.

Empty intelligence archive with dossiers and maps Illustration · fictional scene
In this article

Classify the image first

Context matters more than describing every visible detail. Empty alt is different from a missing attribute. For a chart, also make its data and relationships available as text or a table.

RoleText alternativeUseful complement
Redundant decorationalt=""Nearby text is sufficient.
Simple informationBrief contextual descriptionAvoid unrelated added keywords.
Image-only linkDestination or actionThe link name must make sense.
Complex chartSubject and main messageProvide the data and relationships in text.

Check the actual experience

  • For an image-only link, describe the destination or action. If sufficient link text already exists, avoid repeating it.
  • Do not put essential instructions only in title: access through keyboard, touch and assistive technology is unreliable.
  • Check labels in each language and the journey without images. Optimize dimensions and loading without automatically delaying the main visual.

Connect visibility with verified rights

A filename or markup does not guarantee indexing or ranking. Declare a license only after checking rights and retain required credits. Clearly identify synthetic illustrations rather than presenting them as documentary evidence.

Primary references

Alternative text depends on the image’s use

Descriptive alt text is not automatically the right choice. Redundant decoration can have empty alt; a linked image should communicate its destination; a complex chart also needs detailed description. Review the image in its actual page context.

  • Classify decoration, information and function before writing.
  • Put diagram relationships in nearby text or a table.
  • Avoid keyword lists and describing fictional scenes as real evidence.

Primary reference: W3C WAI — An alt Decision Tree. Related method: read the practical guide.