Accessibility Guides

6 days ago

25 Nov 2026

How to Write Alt Text for Website Images

How to Write Alt Text for Website Images

You are adding a photo to your website when a field asks for “alt text.” Should you type the filename, describe every object, or leave it blank?

Alternative text, usually called alt text, is a written alternative for an image. A screen reader, which presents digital content through speech or braille, can use it to convey information to someone who cannot see the picture.

The best place to start is not the picture alone. It is the reason you included that picture on this particular page.

Start with the reason the image is on the page

Imagine a photograph of a café entrance. On a page about finding the café, the useful detail might be the doorway beside a pharmacy. On a renovation story, it might be the newly painted green door.

Those descriptions serve different purposes even though the photograph is the same.

Before writing, ask yourself: “What would a visitor miss if this picture were unavailable?” The World Wide Web Consortium's image decision tree, published by the organization that develops web standards, takes this context-based approach.

For your café's directions page, a useful description could be: “Café entrance with a green door, immediately beside the pharmacy.” You would not need to mention every passing car.

Describe the useful detail, not everything you can see

Keep the description focused. There is no need to turn a product photo into a long inventory of its background.

Consider these illustrative examples:

  • Too vague: “Bag.”
  • More useful: “Navy shoulder bag with an adjustable strap and two front pockets.”
  • Unhelpful promotion: “Best affordable stylish bag, amazing bag, buy bags online.”

The second version communicates visible product details. The third distracts from the image's purpose with repeated sales language.

Read the surrounding text before adding your description. If a nearby paragraph already explains a detail, decide whether repeating it adds anything useful.

For a chart, a short description may not be enough. Put the important figures or explanation in the page's text too, as the image decision tree recommends for complex information. A chart title alone cannot communicate all its data.

Explain the action when an image is a link or button

Sometimes an image does something. A small basket icon opens a shopping basket, or a business logo takes visitors to the homepage.

In that case, the useful information is the action or destination, not just the appearance. “View shopping basket” explains more than “Basket drawing.”

The W3C guidance on functional images explains this distinction. W3C is the short name for the World Wide Web Consortium. Its guidance also covers situations where visible link text already supplies the name, so the image does not need to repeat it.

Ask your website provider how your editor handles linked images and icon buttons. The description field for a photograph may not control the name of a separate button. Do not assume that changing one fixes the other.

Know when an image does not need a description

A decorative image adds visual style without contributing information. A flourish beside a heading may be one example.

Such images can need an empty text alternative rather than a spoken description. Empty alt text is an intentional setting; it is not necessarily the same as forgetting the description field. Your website editor may have a “decorative image” option.

The distinction depends on context. A pattern used as decoration on one page might be the product being sold on another. Use the W3C decision tree when you are unsure, and ask your website provider how to apply the right setting.

Add image review to your publishing routine

Before publishing, check the image's purpose, the surrounding copy, and the description your editor has saved. Preview the page after making changes.

For a small shop, you might review one product category at a time. Keep a note of unclear images rather than trying to rewrite the entire catalogue in one sitting.

SenangLab's scheduled checks can flag potential missing image alternatives in the underlying page code at the registered address. They cannot decide whether your wording accurately explains the photograph. Its widget also cannot supply missing alt text for you.

Use an automated finding as a prompt to inspect the content, not as a substitute for writing it thoughtfully.

Conclusion: write for the person who cannot see the image

Useful alt text answers a practical question: what does this image contribute here? Sometimes that calls for a brief description, sometimes an action, and sometimes an intentionally empty alternative.

If you already use SenangLab, review a completed report in your website's Monitoring tab and investigate any image-related findings. Start with one important page, then make image review part of your next content update.