Skip to content
SEO-Wars

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.

ResultPoints
90% or more have alt3
No images on the page3
50-89% have alt2
Under 50% have alt0

How to fix it

  1. Write a short, specific alt for every informative image: what it shows, in context.
  2. Use alt="" for purely decorative images.
  3. Fill the alt field in your CMS media library so every use of the image gets it.

Copy-paste fixes

HTML
<!-- 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">
WordPressfunctions.php
// 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 );
Shopifysections/main-product.liquid
{%- assign alt_text = product.featured_image.alt | default: product.title -%}
{{ product.featured_image | image_url: width: 800 | image_tag: alt: alt_text, loading: 'lazy' }}
Next.js
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, photo or the file name.
  • Stuffing keywords into alt text.
  • Leaving out the alt attribute 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.

Start a duel
← All checksUpdated December 1, 2026
Image alt text: why it matters and how to fix it · SEO-Wars