Home » SEO » Missing Image Alt Text: Write Descriptions That Help Screen Readers and Search
Missing Image Alt Text: Write Descriptions That Help Screen Readers and Search
Alt text is a short written description attached to an image:
<img src="dns-panel.png" alt="DNS settings panel with a TXT record for SPF being added">
Sighted visitors never see it. Screen reader users hear it read aloud in place of the image. Search engines read it to understand what the image shows. It also appears when an image fails to load. When alt text is missing, all three groups get nothing, or worse, the screen reader reads out the file name: "IMG underscore 4 0 2 7 dot J P G".
Step 1: decide what each image is for
The right alt text depends on the image's job on the page.
| Image type | Alt text |
|---|---|
| Informative (a screenshot, chart, product photo) | Describe the information it gives |
| Functional (an image used as a link or button) | Describe the action: "Search", "Download the PDF" |
| Decorative (background flourish, spacer, mood photo) | Empty: alt="" |
| Image of text | Repeat the text in the image |
| Complex (detailed chart or diagram) | Short summary in alt, full detail in nearby text |
The empty alt="" is important. Leaving the attribute out entirely is not the same; screen readers then announce the file name.
Step 2: write useful descriptions
Imagine describing the image to someone over the phone, in the context of the page.
- Bad:
alt="image",alt="screenshot",alt="photo of photo". - Too vague:
alt="DNS settings". - Good:
alt="Cloudflare DNS panel showing an A record pointing to 203.0.113.10".
Tips:
- Skip "image of" or "picture of". Screen readers already say it is an image.
- Put the most important detail first.
- Match the purpose of the page. A product photo on a shop page needs colour and model; the same photo in a blog post about packaging needs the box.
- Do not repeat the caption word for word if the caption is right next to it.
Step 3: find images missing alt text
Check pages quickly with:
- Browser tools: Lighthouse in Chrome DevTools (Accessibility audit) flags "Image elements do not have [alt] attributes".
- WAVE (wave.webaim.org): highlights each image and its alt text on the page.
- A site crawler: lists every image without alt text across the whole site.
In WordPress, the Media Library list view shows an "Alternative Text" field for each file. Alt text set in the library is used when you insert an image, but images already inserted into posts keep the alt text they had at insertion time, so check older posts too.
Step 4: fix the templates
Some missing alt text comes from the theme, not your content: logos, author photos, featured images, icons. Look in the template files for <img tags without alt, or images whose alt is filled with the file name. The logo's alt text should be the site or company name.
Step 5: make it a habit
Add alt text at upload time. Most editors have the field right next to the image settings. For teams, include it in the publishing checklist alongside the title and meta description.
Common mistakes
- Using the file name or the same keyword on every image.
- Removing the
altattribute entirely from decorative images instead of leaving it empty. - Describing a linked image's appearance instead of where the link goes.
- Writing alt text for an image of a table instead of using a real HTML table.
Frequently Asked Questions
Should every image have alt text?
Every image needs an alt attribute, but purely decorative images should have an empty one (alt="") so screen readers skip them. Images that carry information need a written description.
How long should alt text be?
Usually a short sentence, under about 125 characters. Describe what matters in this context. Longer explanations belong in the surrounding text or a caption.
Should I put keywords in alt text?
Only if they describe the image naturally. Stuffing keywords makes the page worse for screen reader users and can be treated as spam.
Found a mistake or still stuck? Contact us. See how we write and check these guides in our editorial policy, or read about DocumentGuy.