What is alt text, and what should it say?
What alt text is, what it should say, and when to leave it empty
Alt text is the text alternative in an image's alt attribute, and it should say what the image means on that page, beyond how it looks. The W3C's images tutorial sorts images by purpose. Informative images get a short description of the essential information, functional images such as linked icons describe the action, and purely decorative images get an empty alt="". WCAG 1.1.1 requires it at Level A, and it also makes images indexable by search engines.
What it is
Alt text is the value of the alt attribute on an img element. A screen reader reads it aloud or renders it as Braille. A browser shows it when the image doesn't load. The W3C's images tutorial treats it as the text alternative that carries the information or function the image represents, so people who can't see the image still get what it was there to say.
The tutorial also lists the other people it helps. Speech input users can focus a linked image with one voice command. Mobile users who turn images off to save data still see the text. Search engines can index the image.
What to write, by image type
Start with the image's purpose. An informative image, such as a photo or illustration that conveys something, needs at least a short description of the essential information. A decorative image that only adds visual polish gets an empty alt="", so screen readers skip it. A functional image, such as an icon inside a link or button, should describe the action, so a printer icon says print.
Images of text should repeat the words in the image, and the W3C advises avoiding text in images at all unless it's a logo. Graphs and diagrams need a complete text equivalent of the data.
When several images convey one piece of information, one of them carries the alt text for the group. An image map needs alt text for the overall image and for each clickable area. The W3C publishes an alt decision tree for sorting images into these categories.
Context decides the detail
The same picture can need different alt text on different pages. The W3C's own example is a bird. On a website about parks, its exact type and look may deserve only a brief mention, while a website about birds may need it described in detail. That's why the author has to write alt text for the page it appears on, and a file name won't do.
Alt text and Google
Google's image SEO guide says it finds images in the src attribute of the img element, including an img inside a picture element, and that it doesn't index images set as CSS backgrounds. An image placed as a CSS background therefore has no img element to carry alt text and isn't indexed by Google. Its good example is an img with both src and alt.
The same guide says Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF in img src. When you use srcset or picture for responsive images, it recommends always including a fallback src, because some browsers and crawlers don't understand those attributes.
Sources
Each was read on October 11, 2026.
Questions
Should every image have alt text?
Every img should have an alt attribute, but not every one needs words in it. The W3C says a purely decorative image should use an empty alt="" so assistive technology skips it.
Is alt text a legal or accessibility requirement?
It's part of WCAG. The W3C images tutorial maps to success criterion 1.1.1 Non-text Content at Level A, the most basic conformance level, along with the images of text criteria 1.4.5 at Level AA and 1.4.9 at Level AAA.
What alt text should a linked logo or icon have?
Describe where the link goes or what the button does. The W3C says the text alternative of a functional image should describe the function of the link or button.
Does Google read alt text on CSS background images?
Google doesn't index CSS images at all. Its guide says it finds images in the src attribute of img elements, so images that matter for search should be placed with img and given alt text.
Work with us
Let the agents bring you the leads.
Tell us about your business and who buys from you. On a short call we'll show you the searches your buyers make where you don't show up yet, and what the agents would do about them in their first month.
On the call, for your site
- The searches your buyers makeMeasured, with how many people make each one
- Where you show up, and where you don'tOn Google and in ChatGPT's answers
- The agents' first monthThe pages, fixes and links they would start with