Skip to content
跨境独立站开店
Guides

What is the alt attribute? Explanation of its SEO effects and how to use it on e-commerce sites.

This article explains the meaning of the alt attribute, its SEO effects, and how to use it effectively on e-commerce sites. Review the appropriate settings and points to note to improve image search results and enhance the user experience.

Check Shopify registration offers in your regionSee current offer

What is the alt attribute?

The alt attribute is text that explains the content and role of an image so that the content can be understood even when the image is not displayed. Alternative text is written as the value of the alt attribute specified for the HTML img tag. The text written in the alt attribute is called "alt text" or "alternative text".

The difference between alt attribute and image caption

On e-commerce sites, captions are often displayed in product galleries, and short descriptions are added to photos in blog posts. Captions provide supplementary information for people viewing images. Since captions alone are insufficient to convey the content to users who cannot view the images, the alt attribute should also be set appropriately.

The alt attribute is used to describe the content of the image.

Search engine crawlers and screen readers may not be able to fully understand the content of an image based solely on its pixel information. The text in the alt attribute provides crucial clues for understanding the meaning of an image.

Accessibility can be improved.

Alternative text is one element that improves web accessibility. Accessibility refers to the state in which a website can be used by people with any condition or ability, including those with visual impairments, low vision, and color vision deficiencies.

Related reading

View all
Search optimization

Planning Shopify blog articles around shopper questions

A product page explains a specific item, while a blog can answer buying questions such as how two materials compare or how to choose a size. Group the terms customers actually use into topics before drafting posts.

View offer
Shopify

Start free and explore current offers

Visit Shopify for trial duration, eligible plans and promotions available in your region.

Register free with ShopifyAffiliate disclosure