Alt text examples

Ten image types, each with the mistakes people make and a version that works. The context line matters: change where an image sits and the right alt changes with it.

Product photo

Context: Shop page for the teapot

Sage-green ceramic teapot with a bamboo handle, 1 litre

Weak

  • teapot
  • IMG_4031.jpg
  • teapot green teapot ceramic teapot buy teapot online

Better

Sage-green ceramic teapot with a bamboo handle, 1 litre

Colour, material and the handle are what a shopper compares. The capacity is on the label, so it belongs in alt too.

Blog / editorial photo

Context: Article about commuting by bike in winter

Cyclist in a yellow rain jacket crossing a wet cobblestone bridge at dusk

Weak

  • Image of a woman on a bike
  • cycling

Better

Cyclist in a yellow rain jacket crossing a wet cobblestone bridge at dusk

The rain, the cobbles and the dusk are the article's point: commuting in bad conditions. "Image of" is dropped.

People at work

Context: Local-food feature

Stallholder arranging crates of figs and apricots at a morning market

Weak

  • woman
  • Stock photo of a market vendor

Better

Stallholder arranging crates of figs and apricots at a morning market

Describes the action and setting without guessing age, ethnicity or name.

Icon button

Context: Magnifying-glass button that submits search

Weak

  • magnifying glass
  • search icon

Better

Search

Describe the action. The shape of the icon doesn't matter to someone who can't see it.

Decorative

Context: Watercolour swirl behind a section heading

Weak

  • blue watercolour swirl
  • (no alt attribute)

Better

alt=""

It adds nothing. Use alt="" so screen readers skip it. A missing attribute is not the same: the file name may be read.

Image of text

Context: Promo banner

Weak

  • sale banner
  • banner

Better

Summer sale: 30% off all teapots until 31 August

The words are the content. Transcribe them.

Chart

Context: Quarterly report

Weak

  • chart
  • bar chart showing sales

Better

Bar chart: online sales rose each quarter of 2026, from 18% to 41% of revenue. Data table below.

Type + key takeaway in alt; the full numbers go in a table or long description.

A diagram of the Moon's phases is the extreme case: the picture is the explanation, and alt can only point to it. Compare how ahaboo talks a listener through why the Moon changes shape, using narration where a caption would fall short.

Screenshot

Context: Help article: turning on dark mode

Weak

  • screenshot
  • settings.png

Better

Screenshot: Settings > Display, with the Dark mode toggle switched on

Here the medium matters, and so does the one control the reader needs to find.

Headshot next to a name

Context: Author bio with the name in text beside it

Weak

  • Headshot of Jane Ruiz, author
  • jane-ruiz.jpg

Better

alt=""

The name is already in the adjacent text. alt="" avoids repeating it. If the photo adds something (e.g. "in her pottery studio"), a short alt with only that is fine.

Test your own

Automated checks catch mechanical mistakes only. For a fresh draft from the image itself, use the AI alt text generator; for the rules, see best practices.

Questions people ask

What is a good example of alt text?

For a product page: "Sage-green ceramic teapot with a bamboo handle, 1 litre". It is specific, names what a shopper compares, and skips "image of". For the same image as page decoration, the right alt is empty (alt="").

What is an example of bad alt text?

File names ("IMG_4031.jpg"), single generic words ("teapot", "logo"), "image of…" openers, and keyword lists ("teapot green teapot buy teapot"). All four are common and all four fail users.

How do you write alt text for a logo?

Use the organisation name. If the logo is a link to the home page, describe the destination, such as "Acme home". Add "logo" only when being a logo matters, for example on a sponsors page.

What alt text should a chart have?

A short alt naming the chart type and its main takeaway, plus the detailed data in a table or long description nearby, as W3C WAI recommends for complex images.