Use AI to draft proposals for image alt text, not to approve them. Give it the image, the text around it, and the image’s job on that page. Then check the draft against the image and the page. A decorative image should usually have an empty HTML alt attribute; an image that is the only content of a link needs words that explain where it goes or what it does. A chart may need both a short alternative and a detailed explanation in the page itself.
This workflow is for a web editor, designer, or developer who wants to review images before publishing. You can use it with any image-capable assistant. For private screenshots or unreleased material, use an approved tool or write the text yourself. You do not need to share a real account screen to explain how a button works.
1. Decide what the image does before asking AI
Start with a simple question: if the image disappeared, what information or action would the reader lose? The same image can need different alternatives on different pages. A photo of a bike rack may explain where to park on a neighborhood guide, but add nothing to a story whose text already provides those directions.
- Decorative or redundant: Use an empty alt attribute (
alt="") for a decorative HTML image that has no function. Empty is not the same as missing; do not rely on the filename or leave the attribute out. - Informative: Describe the detail the reader needs in this context. Leave out incidental colors, objects, or guesses. Include important words from the image if they are not available as real text nearby.
- Functional: When an image is the only content of a link or button, name the destination or action, not the icon shape. If the same control already has a clear text label, do not make the reader hear it twice.
- Complex: Identify the chart or diagram briefly, and make the significant trends, values, or relationships available in adjacent text or an accessible table.
The W3C image decision tree helps with the cases that are not obvious from the image alone.
2. Give the model the context it cannot see
Attach the public image, or give the model a verified description. Add the page title, the sentence or label next to the image, the intended image role, and the output language. If it is the only content of a link, state the verified destination. For a chart, provide the source numbers instead of asking the model to read small labels or infer values from bar heights.
Try this prompt on one image first:
Draft an HTML image alternative in [language]. Page purpose: [purpose]. Nearby text: [text]. Intended image role: [decorative, informative, functional, or complex]. Verified link destination or chart data, if applicable: [details]. Give me the proposed alt text and a separate review note. If it should be decorative, output alt="" and explain why only in the review note. If it is the only content of a link or button, name its destination or action. Flag uncertain details rather than guessing. Do not add names, counts, or claims that the image or supplied facts do not support.
The review note is for you, not for the alt field. Where an image shows a new product feature, check its name and behavior in the current interface before you use either in the published description.
3. Edit a real draft: the same photo, two different jobs
Suppose a neighborhood library’s directions page shows a photo of a yellow bike locked to a rail beside the side entrance. The page already says where the entrance is, but doesn’t describe the rack. An AI first draft says, “Yellow commuter bike parked at the main entrance of the city library, with plenty of racks.” The photo does not establish the bike type, the main entrance, or the number of racks.
A useful edit for the directions page is “Bike rack beside the library’s side entrance.” If the same photo becomes the only link to the library’s bicycle-parking map, use “Open the library’s bicycle-parking map.” If it is only a banner above the directions and the rack location is already stated in nearby text, leave the alt empty. These are three deliberate choices, not three competing captions.
Now consider a weekly visits chart with verified values of 120, 180, and 150 across three weeks. A short alternative could say “Weekly library visits peaked in week two.” Put the three values alongside the chart in text or a table. Otherwise, a reader who needs the precise numbers still has to see the image.
4. Check the published page, not just the draft
Preview the page with the image missing, then listen with a screen reader if available. Focus the linked image using a keyboard and check whether its announced name tells you where the link goes. Confirm the actual HTML image has the intended alt value; a media-library description or a caption displayed under the image is not proof. Review each language on its own page, especially if labels or the destination changed in translation.
Google’s image guidance also treats relevant alt text and nearby page content as context. Write for the person who needs the alternative. A string of synonyms is harder to listen to and not a substitute for the correct image role.
Before you publish, ask: Did I keep the function, verify every detail, avoid repeating the adjacent text, and make any important chart data available outside the image? If not, edit the draft. Start with a small batch of images where the answers matter most, such as image-only controls and charts explaining a decision.



