Definition
Alt text is the value of the alt attribute on an HTML image element. It is not displayed alongside the
image and is not a caption; it stands in for the image wherever the image itself is not perceived. The
common name "alt tag" is a misnomer, since it is an attribute of the image tag rather than a tag of its own.
Its first reader is a person. Assistive technology announces an image by reading its alternative text, so a missing alt leaves a gap, or worse, a file name read aloud. Google's image documentation names alt text among the sources it uses to understand images, alongside the file name, the page's title and headings, the text near the image, captions and structured data, and notes that it serves accessibility at the same time.
In practice
A good description says what the image contributes to the page, in the words a sighted reader would use to describe it to someone who could not see it. For a product photo, that is the product and what is distinctive about this view; for a chart, the point the chart makes; for a photo of a team, who they are and what they are doing, if that matters to the page. Context decides the detail: the same picture of a coat needs different alt text on a product page, where colour and fabric matter, and in an article about winter commuting, where it illustrates a scene. The image SEO guide gives worked examples of the difference between a description and a keyword list.
Alt text works best in a page whose structure already explains the image. Placing images next to the text they illustrate, with a caption where useful, gives both readers and engines the context the headings and content structure guide builds the page around.
Decorative images and empty alt
Not every image carries information. Borders, background textures, spacer graphics and purely decorative flourishes add nothing a non-sighted reader needs, and describing them wastes their time. For these images the correct alt is empty: the attribute present with no value. That tells assistive technology to skip the image, which is different from leaving the attribute out, where some screen readers announce the file name instead.
Images that contain text are a special case. If a banner says "Spring sale ends Friday", the alt text has to say the same thing, because otherwise the message exists only for people who can see it.
Alt text in image search and linked images
For businesses whose products are visual, image search is a channel in its own right, and alt text is one of the signals that decides which descriptions an image can be found for. Google's documentation also notes that when an image is used as a link, its alt text is treated like the anchor text of a text link, so an image linking to a category page should describe that destination.
Teams usually make alt text a routine rather than a retrofit. The web page publishing SOP adds alt text when images go into the page, the creative approval SOP checks it among the accessibility items before assets are signed off, the SEO page publishing checklist asks for descriptive alt text on every image, and the on-page SEO audit scores pages that lack it.
Forty rugs all called rug
Willowbrook Rug Makers listed 40 handmade rugs online, and every product image carried the alt text "rug". A customer who used a screen reader emailed to say she could not tell the products apart, and image search sent the shop about 30 visits a month. The owner rewrote the alt text for all 160 product images over two afternoons, describing each by pattern, colour, material and view, such as "Hand-knotted wool runner, indigo and cream diamond pattern, close-up of fringe". Decorative background images were given empty alt text. Three months later image search brought about 190 visits a month, mostly from searches naming a pattern and colour, and two orders in that period came from customers who mentioned using a screen reader.
Related terms
Schema MarkupStructured data vocabulary. for products, recipes and articles carries image properties that complement alt text in rich results. Alt text has no effect on Core Web VitalsGoogle's user experience metrics.; image weight, dimensions and loading behaviour do, which is why image work usually covers both. When an image is a link, its alt text plays the role of anchor text in an Internal LinkA link from one page to another page on the same website.. The right description depends on the page's purpose, so the same image may need different alt text where the Search IntentThe goal behind a search query: to learn, to find a site, to compare or to act. differs.
Common confusions
- Alt text is a place for keywords. Stuffed alt text fails screen-reader users and Google's guidelines.
- Every image needs a description. Decorative images should have an empty alt.
- An empty alt and a missing alt are the same. Empty tells assistive technology to skip; missing does not.
- Alt text is the caption. Captions are visible to everyone; alt text replaces the image for those who cannot see it.
- Alt text is only for search. Its accessibility purpose applies whether or not it brings traffic.
