Use AI image input to draft better alt text

Describe what a meaningful image does on the page, then verify the draft against the image yourself.

Supply the page context with the image

The same photo can illustrate a person’s identity in a profile and illustrate a uniform in an exhibit. Give the assistant the image, its location, and the purpose it serves. W3C’s decision tree bases alternative text on the role of the image and its surrounding content. An image-capable model can help draft language, but context may change what it should mention or whether the image needs substantive alternative text at all. 1 2

Ask for visible details and handle uncertainty

Unclear symbols, small text, and faces the assistant cannot identify should remain uncertain. Tell it where rendered text already appears next to the image and whether that text should be repeated. For a chart, provide the underlying figures or a nearby summary if precise numbers matter. Prompting guidance recommends making the desired result and constraints explicit, which is particularly helpful when the assistant sees an image without the surrounding website. 3

Read the page without the image

Check whether the draft preserves the information the reader needs to understand the page or follow a link. Remove descriptions of colors, framing, or background when they do no relevant work. If the image communicates a complex comparison, the short description can point readers to a more complete explanation elsewhere. Inspect the final draft beside the real page, since the assistant may have had only a partial view.

Sources

  1. Claude Platform guide to vision
  2. W3C decision tree for alternative text
  3. Anthropic prompting best practices