Content
Image alt text: describe your images
Alt text describes images for screen readers and search engines. Alt attributes on 90% of images earn full points; under 50% earns none.
- Category
- Content
- Points available
- 3 pts
- Effort
- Quick fix
Why it matters
Screen reader users hear the alt text instead of seeing the image. Without it, they hear a file name or nothing at all.
Search engines use alt text to understand images and rank them in image search. It also shows if the image fails to load.
How we measure it
We count the <img> elements and how many of them have an alt attribute. An empty alt="" counts, because that is the correct markup for decorative images. A page with no images passes.
| Result | Points |
|---|---|
| 90% or more have alt | 3 |
| No images on the page | 3 |
| 50-89% have alt | 2 |
| Under 50% have alt | 0 |
How to fix it
- Write a short, specific alt for every informative image: what it shows, in context.
- Use
alt=""for purely decorative images. - Fill the alt field in your CMS media library so every use of the image gets it.
Copy-paste fixes
<!-- Informative image: describe what it shows -->
<img src="/img/trail-runner-2-sole.jpg" alt="Lug pattern on the Trail Runner 2 sole" width="800" height="600">
<!-- Decorative image: empty alt so screen readers skip it -->
<img src="/img/divider.svg" alt="" width="200" height="8">// Fallback for images that were uploaded without alt text: use the attachment title.
// Better long-term: fill "Alternative Text" in the Media Library.
add_filter( 'wp_get_attachment_image_attributes', function ( $attr, $attachment ) {
if ( empty( $attr['alt'] ) ) {
$attr['alt'] = get_the_title( $attachment->ID );
}
return $attr;
}, 10, 2 );{%- assign alt_text = product.featured_image.alt | default: product.title -%}
{{ product.featured_image | image_url: width: 800 | image_tag: alt: alt_text, loading: 'lazy' }}import Image from "next/image";
<Image src="/img/sole.jpg" alt="Lug pattern on the Trail Runner 2 sole" width={800} height={600} />Common mistakes
- Alt text like
image,photoor the file name. - Stuffing keywords into alt text.
- Leaving out the
altattribute entirely on decorative images.
Test your site now
Put your site against a competitor and see how many of these points you earn, and which fixes pay off first.
← All checksUpdated December 1, 2026