Image alt text for SEO and accessibility, with examples

By the SEOAlertly team · Updated · 6 min read

Alt text is a short written description of an image. Screen readers read it aloud, browsers show it when an image fails to load, and search engines use it to understand what the image shows. Good alt text helps people first, and that is exactly what helps search too.

What alt text looks like

<img src="red-trail-shoe.jpg" alt="Red trail running shoe with a deep-lug sole">

Good and bad examples

ImageWeak alt textBetter alt text
Product photoshoeRed trail running shoe with a deep-lug sole
Team photoimage123Five members of the support team in the Leeds office
ChartchartBar chart: organic visits rose from 1,200 in May to 3,400 in August
Logo linking homelogoSEOAlertly home
Keyword stuffingshoes running shoes best cheap shoes buy shoesBlue road running shoe, side view

How to write it

When to use empty alt text

Purely decorative images, such as background flourishes, dividers or icons next to text that already says the same thing, should have an empty alt attribute:

<img src="divider.svg" alt="">

Empty alt tells screen readers to skip the image. That is different from a missing alt attribute, where some screen readers read out the file name instead.

How to find images missing alt text

  1. Run a free SEOAlertly check. It counts images on the page, how many have no alt attribute and how many have an empty one.
  2. In your browser’s developer tools, search the Elements panel for <img and look at each alt.
  3. In your CMS, check the media library. Many platforms let you set alt text once per image.

Where to add alt text on common platforms

Related guides