Images without alt: what a missing attribute costs and how to write good alt text
A screen reader reads out a file name, Google Images has nothing to go on, a broken picture leaves an empty frame. Why alt matters, when it should be empty, and how to fix a whole site's worth of images.
Accessibility · Published: 3 November 2026 · 6 min read · Ольга Мирошник
The alt attribute is the text that stands in for an image when the image cannot be seen. A screen-reader user hears it instead of the picture; a visitor on a bad connection sees it in the frame where the image failed to load; a search engine reads it to understand what the image shows. One short attribute does all three jobs, and it is still one of the most common findings on any site.
What happens when alt is missing
When an <img> has no alt attribute at all, a screen reader has no text to read, so many of them fall back to the file name or the address: "IMG underscore 2043 dot jpg", or a long CDN path. On a product listing with forty thumbnails, that is forty strings of noise between the visitor and the prices. If the image is the only content of a link — a logo pointing to the home page, an icon-only button — the link has no name at all, and the visitor hears just "link".
For search, Google says it uses alt text together with computer vision and the content of the page to understand an image. A product photo without alt is harder to match to a query in Google Images, and an image used as a link passes its alt to the link the way anchor text would.
WCAG treats it as a level A requirement — criterion 1.1.1, Non-text Content — which is the minimum level most accessibility laws refer to.
Missing, empty and meaningful are three different things
- No
altattribute — an error. The browser and assistive technology have to guess. alt=""— a deliberate statement that the image is decorative. Screen readers skip it entirely. This is the right answer for dividers, background flourishes and an icon next to text that already says the same thing.alt="Red leather ankle boots, side view"— a description of what the image contributes.
An empty alt is not a shortcut to silence a checker: put it on an image that carries information and that information is gone for a screen-reader user.
How to write it
Describe the purpose, not the pixels. The same photo of a laptop is "MacBook Air 13-inch in silver" in a shop, "Our support team at work" on an About page and alt="" as a stock decoration above a blog post.
For a linked image, describe where the link goes. A logo that links home is the company name — "SiteScan.top" — not "logo".
Skip "image of" and "photo of". The screen reader already announces it as an image.
Keep it short. A sentence is usually plenty. Charts and diagrams that need more belong in the surrounding text or in a caption, with the alt summarising the point.
Never paste the file name or a list of keywords. alt="banner-2-final" passes a check that only counts attributes and tells nobody anything; alt="boots cheap boots buy boots" is the keyword stuffing Google explicitly warns against.
Images that are not <img>. A CSS background has no alt — if it carries meaning, use a real <img> or give the element role="img" and an aria-label. An inline <svg> icon that means something needs role="img" and a <title> or aria-label; a purely decorative one gets aria-hidden="true".
Fixing a whole site
The missing alts rarely come from one page; they come from a template or from a content workflow.
- Templates first. A product card, a category tile or a team grid that renders
<img src="…">with no alt repeats the error on every page that uses it. Pass the product name or the person's name into the alt in the template. - The CMS media library. In WordPress and most other systems alt text is stored with the uploaded file. Fill it in there, and make the field required in your editorial checklist. Note that images already inserted into old posts may keep the alt they were inserted with.
- Content editors. Add alt to the definition of done for a new article or product, the same as a title and a price.
The broader picture of what automation can and cannot judge is in the accessibility guide; the performance side of images in image optimisation.
What SiteScan checks
Every scan counts the <img> elements on the crawled pages and reports how many of them have no alt attribute, as "N of M" with sample addresses so you can find them. Empty alts are left alone, because they are valid for decoration. Alts that are just the file name are reported separately, since they pass a simple count but fail the visitor. A browser scan also runs the axe-core image-alt rule in the mobile accessibility pass. Each finding has a ready task in "Copy fix brief" for your developer. Run a free scan to see how many of your images are silent.
Read next
Check how much of this is on your own site
A free scan surfaces broken links, JS errors and performance problems in about a minute.