Free auditStart free
ExamplesExamples · Page markup

Alt text examples

Image alt text from 10 real pages including Apple, IKEA, NASA, the BBC and Wikipedia, with counts of descriptive, empty and missing alt, and what to copy.

10
real examples
Nov 2, 2026
captured
5
templates
Scaplet Editorial Team
editor
In one line

Alt text is the alt attribute on an img element: a short description for people who can't see the image, and a signal Google uses to understand it. We counted img elements in the served HTML of 10 real pages. Of 733 images, 591 have descriptive alt, 63 have an empty alt and 79 have none. Five pages left gaps.

Across 10 captures

Counted from the captured files
5 of 10
Decorative empty alt
5 of 10
Long alt
5 of 10
No empty alt
5 of 10
No missing alt
Side by side

Smithsonian Magazine vs BBC.

Two captures that solve the same job differently. Numbers come from the captures.
Smithsonian Magazine
smithsonianmag.com
<img src="/static/smithsonianmag/img/smithmag-logo-horizontal-white.98dddd9f3f4d.svg" alt="Smithsonian Magazine white logo" width="255" height="30"/>
<img src="https://th-thumbnailer.cdn-si-edu.com/E9lx2fEeWN8-4pWBiubQDJylcCg=/750x500/filters:focal(1500x1129:1501x1130)/https://tf-cmsv2-smithsonianmag-media.s3.amazonaws.com/filer_public/3b/3d/3b3d7ca5-6943-4b8d-ae60-67
<img src="https://th-thumbnailer.cdn-si-edu.com/4NhfYYTtt6v0gEbw4pvyguNxuT4=/450x300/filters:no_upscale():focal(1000x686:1001x687)/https://tf-cmsv2-smithsonianmag-media.s3.amazonaws.com/filer_public/b6/1c/b61c3921-c39e-4
<img src="https://th-thumbnailer.cdn-si-edu.com/H8d1B8__uIefY5e89fnhyV3b8us=/314x210/filters:no_upscale()/https://tf-cmsv2-smithsonianmag-media.s3.amazonaws.com/filer_public/74/5a/745a7e72-cd2f-4276-9c2c-218611cec177/abo
<img src="https://th-thumbnailer.cdn-si-edu.com/g3tj0b2d-l-snV9h7wmEsITzGAU=/450x300/filters:no_upscale():focal(1500x1029:1501x1030)/https://tf-cmsv2-smithsonianmag-media.s3.amazonaws.com/filer_public/be/09/be09ca75-f434
<img src="https://th-thumbnailer.cdn-si-edu.com/dvn2u2BhXZkM2HqA8YQIvrIR-_g=/450x300/filters:no_upscale():focal(1500x1129:1501x1130)/https://tf-cmsv2-smithsonianmag-media.s3.amazonaws.com/filer_public/3b/3d/3b3d7ca5-6943
  • 52 img elements in the served HTML
  • 51 images with descriptive alt text, averaging 64 characters
  • 1 image with an empty alt attribute (marked decorative)
BBC
bbc.com
<img sizes="(min-width: 768px) 50vw, 100vw" srcSet="https://ichef.bbci.co.uk/ace/standard/240/cpsprodpb/d676/live/22e22510-d65b-11f1-87c6-9305d604abed.jpg.webp 240w,https://ichef.bbci.co.uk/ace/standard/320/cpsprodpb/d67
<img sizes="25vw" srcSet="https://ichef.bbci.co.uk/news/240/cpsprodpb/6ea1/live/d9896430-d625-11f1-93e1-3b657b665bcf.jpg.webp 240w,https://ichef.bbci.co.uk/news/320/cpsprodpb/6ea1/live/d9896430-d625-11f1-93e1-3b657b665bc
<img sizes="25vw" srcSet="https://ichef.bbci.co.uk/news/240/cpsprodpb/9fb5/live/43875670-d640-11f1-be6d-936c6c4b19c2.jpg.webp 240w,https://ichef.bbci.co.uk/news/320/cpsprodpb/9fb5/live/43875670-d640-11f1-be6d-936c6c4b19c
<img sizes="25vw" srcSet="https://ichef.bbci.co.uk/news/240/cpsprodpb/3a7f/live/ad865b20-d64f-11f1-a701-fddedf244c16.jpg.webp 240w,https://ichef.bbci.co.uk/news/320/cpsprodpb/3a7f/live/ad865b20-d64f-11f1-a701-fddedf244c1
<img sizes="25vw" srcSet="https://ichef.bbci.co.uk/news/240/cpsprodpb/ce75/live/a6edaf70-d618-11f1-93e1-3b657b665bcf.jpg.webp 240w,https://ichef.bbci.co.uk/news/320/cpsprodpb/ce75/live/a6edaf70-d618-11f1-93e1-3b657b665bc
<img sizes="25vw" srcSet="https://ichef.bbci.co.uk/news/240/cpsprodpb/1694/live/d0cd8590-d64a-11f1-b441-2b33b063138f.jpg.webp 240w,https://ichef.bbci.co.uk/news/320/cpsprodpb/1694/live/d0cd8590-d64a-11f1-b441-2b33b063138
  • 40 img elements in the served HTML
  • 20 images with descriptive alt text, averaging 82 characters
  • 20 images with no alt attribute at all
Smithsonian MagazineBBC
Images5240
Descriptive alt5120
Empty alt10
No alt attribute020
Longest alt259 characters186 characters
Pattern library

5 patterns to copy.

Templates we wrote from what the examples have in common. Replace the placeholders in braces.
01

Informative photo

A photo that adds content to the page. Say what is in it, in the context of the surrounding text.

Our template
<img src="/images/{file}.jpg" alt="{Subject} {doing what}, {setting}">
02

Product image

Shop and catalog pages. Product, variant and view or setting, never a list of keywords.

Our template
<img src="/images/{sku}.jpg" alt="{Product name}, {color}, {angle or room}">
03

Decorative image

Dividers, background flourishes and images that repeat text next to them. Keep the attribute, leave it empty.

Our template
<img src="/images/{flourish}.svg" alt="">
04

Linked image

An image that is the only content of a link or button. Describe where it goes, not what it looks like.

Our template
<a href="/{destination}"><img src="/images/{icon}.svg" alt="{Destination or action}"></a>
05

Logo

A logo that is the brand name. Match the visible wordmark.

Our template
<img src="/images/logo.svg" alt="{Brand}">
01Worth knowing

What 10 pages do with alt

We fetched each page on 2 November 2026 from India and counted every img element in the served HTML. We used the US or international version where a site has one, such as IKEA's /us/en/ and The Guardian's /international, and some sites vary markup by region. Images added later by JavaScript, and CSS background images, are not counted.

Missing is not the same as empty

NASA and National Geographic have no img without the attribute. Five pages (Apple, BBC, Wikipedia, IKEA, The Guardian) have at least one.

Length varies a lot

Per-page averages of descriptive alt run from 15 characters on the Wikipedia article to 111 on Apple.

Templates leak

Lonely Planet's capture includes an alt that is only a file name, and IKEA leaves 38 of 114 images without alt.

img elements by alt status, captured 2026-11-02
PageImagesDescriptive altalt=""No alt attribute
allrecipes.com13013000
apple.com/iphone696603
bbc.com/news4020020
en.wikipedia.org (Lighthouse)40131017
ikea.com/us/en11476038
lonelyplanet.com858500
nasa.gov7341320
nationalgeographic.com201190
smithsonianmag.com525110
theguardian.com/international11010811
02Your call

What Google and the W3C say

Google's image guidance calls alt text the most important attribute for giving an image metadata, and says it uses alt text together with computer vision and the page content. It asks for useful, information-rich text that uses keywords appropriately and warns against filling the attribute with keywords. It gives no length limit. Google finds images in the src of an img element and doesn't index CSS background images.
If this fits

Write a description

  • The image adds information the text doesn't
  • It is the only content of a link or button (describe the destination)
  • It is a product, a person or a scene a reader would want named
Or

Use alt=""

  • The image is purely decorative
  • Its text or meaning already appears next to it
  • It repeats a headline or caption beside it
Google's own progression for one image
<!-- Bad: no alt -->
<img src="puppy.jpg"/>

<!-- Better -->
<img src="puppy.jpg" alt="puppy"/>

<!-- Best -->
<img src="puppy.jpg" alt="Dalmatian puppy playing fetch"/>

The W3C's alt decision tree covers the other half: decorative images, and images whose content is already in nearby real text, get an empty alt attribute. That is what NASA does on its decorative images, and it is why alt="" in the table above is not an error.

03How it works

Check it on your own site

This counts the img elements in the served HTML, the same way the table above was built. We ran both commands against nasa.gov and got the same 73 images and 32 empty alts as the capture.
  1. 1

    List images with no alt attribute

    Run the first command below. Anything it prints is an image with the attribute missing, not an empty one.

  2. 2

    Count empty alts

    Run the second command. These should all be decorative images you can justify.

  3. 3

    Read the rendered page too

    In DevTools, run document.querySelectorAll('img:not([alt])').length in the console to catch images added by JavaScript.

Run against your own URL
# images with no alt attribute
curl -sL https://example.com/ | grep -o '<img[^>]*>' | grep -vi ' alt='

# empty alts
curl -sL https://example.com/ | grep -oi '<img[^>]*alt=""' | wc -l
Sources · 12

Every fact, linked and dated.

Official docs first, then every capture with the date we fetched it.
  • google.com
  • w3.org
  • allrecipes.com
  • apple.com
  • bbc.com
  • ikea.com
  • lonelyplanet.com
  • nasa.gov
  1. 01Google image SEO best practicesdevelopers.google.com · checked 2026-11-01
  2. 02An alt decision tree (W3C WAI Images Tutorial)w3.org · checked 2026-11-01
  3. 03Allrecipes alt textallrecipes.com · checked 2026-11-02
  4. 04Apple alt textapple.com · checked 2026-11-02
  5. 05BBC alt textbbc.com · checked 2026-11-02
  6. 06IKEA alt textikea.com · checked 2026-11-02
  7. 07Lonely Planet alt textlonelyplanet.com · checked 2026-11-02
  8. 08NASA alt textnasa.gov · checked 2026-11-02
  9. 09National Geographic alt textnationalgeographic.com · checked 2026-11-02
  10. 10Smithsonian Magazine alt textsmithsonianmag.com · checked 2026-11-02
  11. 11The Guardian alt texttheguardian.com · checked 2026-11-02
  12. 12Wikipedia article alt texten.wikipedia.org · checked 2026-11-02
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01How long should alt text be?

Google's image guidance gives no character limit. It asks for useful, information-rich text. In our 10 captures, per-page averages for descriptive alt run from 15 to 111 characters, and the longest single alt is 473 characters on The Guardian.

02Should decorative images have an alt attribute?

Yes, an empty one. The W3C's decision tree says purely decorative images get an empty alt attribute, and so do images whose content repeats nearby text. Five of the 10 pages we captured use alt="" this way.

03Does alt text help SEO?

Google says it uses alt text along with computer vision and the page content to understand an image, and calls it the most important attribute for image metadata. It also warns that keyword stuffing in alt makes for a poor experience and may look like spam.

Free · 2 minutes

Seen the examples? Now check your own site.

The free audit reads your robots.txt, title tags, meta descriptions, structured data and status codes, and lists what to fix.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly