Skip to main content

Image Box: Set alternative text (alt)

Learn how to add alternative text to an image box in img mode. Setting this information is also very important for SEO. We'll also show you how to set different alt text for each image inside a list item.

What is alternative text (alt)?

Alternative text (alt) is important information that tells web crawlers and screen readers what an image contains. Setting this information is also very important from an SEO perspective.


Adding alternative text to an image box

Note: Alternative text can only be set for images in Img mode.

  1. Select the image you want to add alternative text to.

    If the selected image is in Box mode, switch it to Img mode.

    Image box selected on the canvas, with the Box/Img mode switch in the top right of the image
  2. Select the [Image] tab in the right panel.

    If the panel is closed, open the right panel.

  3. Select [Set text], then enter the alt text in the [Image alternate] field.

    Image tab in the right panel with Set text selected and alternative text entered

Point: Box mode and Img mode for image boxes

Image boxes have two modes — "Box mode" and "Img mode" — and each mode handles images differently and offers different settings.

For details on each mode and how to use them, see Image Box: Box mode and Img mode.


Treat an image box as decorative

For decorative images that don't convey any content, such as backgrounds, borders, and ornaments, select [Treat as decorative] instead of entering alternative text. You don't need to set aria-hidden.

Note: [Treat as decorative] is only available for images in Img mode.

  1. Select the image you want to set.

  2. Select the [Image] tab in the right panel. If the panel is closed, open the right panel.

  3. Select [Treat as decorative].

    Image tab in the right panel with Treat as decorative selected

Note: When you select [Treat as decorative], any text you entered in [Image alternate] is deleted. Switching back to [Set text] doesn't restore it.

Point: Selecting [Treat as decorative] resolves the Site Health issue [Image alt text is not set]. Depending on the image's role, a different fix may be needed. For details, see Site Health issues and how to fix them.

Adding alternative text to images in a static list

To set different alternative text for each item in a list, create a text property and link it to the image.

If you type text directly into the alternative text field the way you would for a regular image box, the same alternative text will be applied to every image in the list items.

(1) Create a text property for the alternative text

  1. Click [+] in the top right of the table and add a [Text] property.

    Property table of a static list with the Text property type highlighted in the add menu
  2. Enter the text you want to use as alternative text. Renaming the property from "Text" to something like "Alternative Text" makes it easier to manage.

    Property table with alternative text entered for each list item

(2) Set the property you created as the alternative text

  1. Select the image box in the list item.

  2. Open the [Image] tab in the right panel. If the panel is closed, open it first.

  3. Select [Set text].

  4. Click the [Image alternate] field and select the text property you created in step (1).

    Image alternate field in the right panel with the text property being selected

    Tip: You can also combine a text property with text you type in directly. Anything you type in directly will apply to all list items.

    Image alternate field combining a text property with directly entered text
  5. Once set, the change applies to every list item in the same list.


Alt text and accessibility

For tips on building with accessibility in mind, take a look at the Studio Accessibility Checklist.

Related tags: alternative text SEO accessibility

Did this answer your question?