Search LA24X

Keyboard shortcut: Ctrl / ⌘ + K

Type two characters to search, or explore the library.

Open the topic library →

Privacy choices

Choose what suits you. Reading and tools work without analytics or optional saving.

Necessary — always active

Page delivery, language and privacy preferences.

Advertising

Storage details ↗

Draft alt text from the image’s purpose, not everything AI can name

Choose informative, functional or decorative treatment, write the needed meaning and verify it in the page’s actual context.

Illustration for Draft alt text from the image’s purpose, not everything AI can name
✓ Alt text depends on context, not just the pixels.✓ An empty alt attribute can be appropriate for genuinely decorative content.

In brief

Alternative text should communicate the image’s purpose in the page. A model’s exhaustive object list may be less useful than a short description of the fact the reader needs.

Use AI as a draft aid and inspect the image and surrounding content yourself.

Describe the needed information

For a troubleshooting screenshot, explain the relevant error or selected setting rather than listing every icon. If the same information is already fully in nearby text and the image adds no meaning, review whether decorative treatment is appropriate. Do not stuff search keywords into the attribute.

Describe function when it is a control

An image acting as a link or button needs the action or destination conveyed. “Blue rectangle” does not explain a download button. Check whether a visible text label already supplies an accessible name so the final control is not confusingly duplicated.

Verify the draft

Remove colours, identities or text the model guessed. For a chart, keep the essential conclusion available in the page and provide data or a fuller description where necessary. Follow W3C’s decision tree rather than assuming every image needs a long sentence.

Before you act

Decorative images can need empty alt text; linked or button images need their function. Complex charts may require a nearby fuller explanation beyond a short attribute.

What to do next

  1. Identify what the image contributes to this page and whether it is functional or decorative.
  2. Draft the meaning needed by someone who cannot see it.
  3. Check the actual image, surrounding text and link purpose, removing invented details.
You’ve reached the end. Save this guide for later.Back to top ↑