Documentation verified on November 25, 2026.
AI can suggest alt text for a product photo if you provide the image and explain where it will appear. A backpack shot in a gallery may indicate that there is a separate pocket inside. The same photo in a link with no text should help the shopper understand which product page they will open. If the photo sits inside a link next to the product name and adds nothing, leave the attribute empty: alt="". W3C WAI decision tree.
Alt text is the text alternative to an HTML image. The questions below help a catalog editor and storefront developer align on where you need an AI draft and where the link or button name is enough. All examples use a sample blue backpack product card.
What should you write in a product photo alt text?
Provide the detail a shopper can learn from the image. For an open backpack, this could be "Open blue backpack with an inner zip pocket." A side-angle shot has a different job if it shows, for example, an outer pocket. Capacity, water resistance, and material should come from approved product specs on the product page. In alt text, keep only the details the photo actually shows and that matter in that spot. W3C WAI on informative images.
If the image shows a size chart, give shoppers access to the data itself in HTML next to the image. A short alt can name the chart when that helps people find the text version. For a store, this is also a way to update sizes in one readable place. W3C WAI on complex images.
Should alt differ by angle and color?
Describe the difference when it helps shoppers choose a product. For a front view, this could be "Blue backpack with front zip pocket"; for a view of the open main compartment, "Open blue backpack with inner zip pocket." Tie the photo to the variant ID and pull the color name from the approved card for that variant. If the photo and the listed color conflict, send the pair to an editor: the model may describe the shade from the image, but the catalog must confirm the file-to-variant match.
If one photo is used both in a gallery and in a product grid, the text should be stored with the display context in mind. The technical minimum for such a record is the file ID, variant ID, and the image role in the template. A file-level field is convenient for the gallery, but the link template may need different data. W3C WAI decision tree.
When should alt be left empty?
Use alt="", if the image is decorative or the surrounding text already conveys its meaning, and the photo itself adds nothing significant. For example, in a store listing, a blue backpack photo appears in a link with the text "Trail Backpack, Blue." If the image description in that spot would only repeat the name, an empty alt lets the link get its accessible name from its text. The img element still keeps the explicitly set attribute. W3C WAI on decorative images.
Check where the caption sits. A heading may look like part of the same tile but still live in a separate link. If the first link contains only the photo, an empty alt with no other provided name will leave that link without a meaningful accessible name. W3C WAI examples for images in links.
How should you name a photo link and a thumbnail button?
If the photo is the only content of the link, the alt can say where the link goes, for example "Trail Backpack, Blue." If the photo is a thumbnail inside a button that switches the large image, give the button itself a name based on the action and view, for example "Show inner pocket." With that name, the image inside the button can have empty alt when it adds nothing to the button's purpose. The large image keeps its own text describing what is visible. W3C WAI on functional images. W3C APG button pattern.
| Where the photo is used | What the shopper gets |
|---|---|
| Large image in the gallery | The image "Open blue backpack with an inner zip pocket" |
| Photo as the only content of a link | The link "Trail Backpack, Blue" |
| Photo and product name inside one link | The same link name from the visible text, with the photo alt="" |
| Thumbnail in a separately named button | The button "Show inner pocket," with the thumbnail alt="" |
What data should you give AI for a draft?
For an informative image, give the model the photo, the approved product and variant name, the display location, and the text the shopper already gets nearby. For links and buttons, take the purpose from the storefront template: pixels alone cannot tell whether a thumbnail opens another photo or takes the shopper to the product page.
For example, an editor can attach a shot of an open backpack and give the model this prompt. This is a suggested template, and the sentence about the inner pocket above is an instructional example of an editor's response.
Product: Trail Backpack, catalog variant: Blue.
Location: large informative photo in the product gallery.
The product name and approved description are already nearby.
Suggest one short alt phrase in Russian.
Name the detail visible in the shot that would be useful for the shopper to know.
Do not infer material, capacity, water resistance, or included items from the photo.
If the detail or the variant match is uncertain, send it for review.
Check that the phrase matches the correct file. If the AI named a pocket, find it in the image. For several similar shots, compare the descriptions: the same phrase may hide a useful difference, and for a true duplicate the decision depends on where it is displayed. If the source photo needs preparation, a related task is covered in the article on preparing product images with transparent backgrounds.
How do you run generation across a catalog and keep the needed empty alt attributes?
Send informative images with missing descriptions into the generation queue. Store an intentionally empty alt as the decision for a specific display location. For example, in editor data the large image may have the status "needs text," the promo block may be "decorative," and the thumbnail may be "button name." Then the export can distinguish an editor-approved text requirement from an unfilled field.
If you use a ready-made integration, check its update rules. For example, AltText.ai documents a Shopify mode that skips images with an already filled alt and a separate overwrite mode. To test your export before a full launch, take a product card with an approved description, an image without a description, and an element with intentionally empty alt. The expected result is that the approved phrase stays in place, the draft appears only for the informative image, and the decorative element and thumbnail continue to display with empty alt. This is a suggested test for your theme and integration. AltText.ai documentation on update modes.
Should you add search queries to alt text?
Use normal product and detail names when they help explain the image or action. A query like "backpack buy cheap shipping" says nothing about the inner pocket, while the shopper needs to understand which variant or angle they are looking at. Google Search Central explains that it uses alt together with page content and computer vision, and recommends avoiding keyword stuffing. Google image guidelines. Yandex Webmaster also notes that the attribute helps the Yandex Images crawler understand what the image is about. Yandex Webmaster recommendations.
Alt applies to the HTML of a specific store page. The product feed uses separate fields for the name and description; you can check them against the guide on preparing fields for XML product export.
How do you check alt, a link, and a button in Chrome?
In Chrome, open Developer Tools, select the element on the Elementstab, then open Accessibility. For a large image, check the image’s role and name. For a tile, select the link itself, and for a thumbnail, select the button. In their computed properties, verify that the name conveys the purpose and that the product name is not repeated twice within a single name. If the site changes the frame after a color is selected, repeat the check on the updated frame. Chrome DevTools documentation on computed accessibility properties.
In the training HTML, the options from the table can be described like this. The markup shows the roles and names of the elements. The frame switch itself in the live gallery is implemented by the storefront code.
<img src="inside.webp"
alt="Open blue backpack with an inside zip pocket">
<a href="/catalog/tropa-blue">
<img src="front.webp" alt="Tropa backpack, blue">
</a>
<a href="/catalog/tropa-blue">
<img src="front.webp" alt="">Tropa backpack, blue
</a>
<button type="button" aria-label="Show inside pocket">
<img src="inside.webp" alt="">
</button>
We checked these snippets in local training HTML in Chrome. The large frame got its name from alt, both links included the product name: in the first one from the image alt, in the second one from the visible text, and the button got its own name from aria-label. We also removed the text from the link with an empty alt, and its computed name became empty. The check applies to Chrome’s accessibility tree. We did not test the store gallery behavior, screen reader output, or model responses in this example.
How to build alt text preparation into your catalog
Vladimir Lomtev’s AI Studio can describe the role of photos in storefront templates, set up draft generation from images and catalog data, and add manual review for ambiguous matches between a file and a product variant. For the first discussion, one product card with a gallery and a tile from search results is enough. From those, it becomes clear where the editor needs text and where the developer needs the element name. Discuss the project.
What to pass to the editor and developer
Give the editor the pairs of “image and variant” and ask them to check what new information each meaningful frame conveys. Tell the developer where this text is output in alt, where the links get their names from, and what the thumbnail buttons are called. That way, one file can be used in several places across the storefront, and the shopper will get the right information in each one.



