AI websites

Step-by-step tutorial

How to Write Alt Text for Images on an AI Website

Decide which images need alt text, write descriptions that fit the page, and check that your AI website saved the right values.

Product links on this page are ordinary official links. No affiliate commission is currently attached. Read our disclosure.

Quick answer

Write alt text for the information a reader would miss without the image. For a decorative image that adds no information, use an empty alt value. If an image is the only content in a link or button, describe what it opens or does.

Alt text is a text alternative for an image. It can give people who use a screen reader the information they would otherwise miss. The W3C image decision tree helps you decide based on the image’s purpose.

1. Pick one page and sort its images

Imagine someone is using your page without seeing the images. What do they need to know or do?

  • An image gives information. A photo on a venue directions page might need “Step-free entrance to the left of the main doors.” Verify the detail yourself before using it.
  • An image is decoration. A leaf divider between sections can use alt="". That is an explicitly empty value. An omitted alt attribute can cause some screen readers to announce the filename. W3C decorative images guidance
  • An image is the whole link. For a map icon that opens directions, “Get directions” tells the reader what the link does. If visible text in the same link already says “Get directions,” the icon can have empty alt to avoid repeating the label. W3C functional images guidance

If a chart contains details people need, add a short label and put the main findings or a data table in the page text. A long alt field is hard to navigate. W3C complex images guidance

2. Add the text and check any AI suggestions

Look for Alt text or Alternative text in the image settings. A caption is visible on the page and may be a separate field. If your builder has a decorative option, use it for images that add no information.

In HTML, the three examples could look like this.

<img src="entrance.jpg"
     alt="Step-free entrance to the left of the main doors">
<img src="leaf-divider.svg" alt="">
<a href="/directions/">
  <img src="map.svg" alt="Get directions">
</a>

If you ask an AI assistant for help, give it the page context and tell it to flag details it cannot verify.

Review the images on my venue directions page.
Suggest alt text based on each image's purpose.
Flag any details you cannot verify for me to check.
Leave image files and link destinations unchanged.

3. Check what the page actually saved

  1. Open the preview and read the surrounding text. The description should supply useful information without repeating what the page already says.
  2. Confirm the saved values. Reopen the image settings. If a blank field could mean the alt attribute is omitted, inspect the rendered image or ask your assistant to show the rendered HTML. Look for an explicit alt="" on the decorative image.
  3. Try the image-only link. Use Tab to focus it and Enter to open it. Confirm it goes to the promised destination. If you can inspect the link in a browser’s accessibility view, check that its name is “Get directions.” Keyboard navigation checks the link’s behavior; it does not verify what a screen reader announces.

Repeat these checks on the public page after publishing. If the file itself fails to load, see the guide to missing images and styles.