Alt text is read aloud by screen readers, shown when images fail to load and used by search engines (see the alt attribute and SEO). Good alt text is not a list of keywords – it is a short, useful description.
Ask: why is this image here?
| Image | Good alt text |
|---|---|
| Photo of a mechanic repairing an e-bike, on a repairs page | Mechanic replacing the chain of an e-bike in our Ghent workshop |
| Same photo, on a team page | Sarah, our e-bike specialist, at work |
| Product photo | Black waterproof rear pannier, 20 litres, with roll-top closure |
| Decorative divider | alt="" |
| Logo linking to the homepage | dom4j.org home |
| Icon button (magnifier) | Search |
Rules of thumb
- Describe content and function, not appearance alone.
- Be concise: usually under 150 characters.
- Do not repeat the caption or surrounding text word for word.
- For linked images, describe the destination.
- Avoid images of text; if unavoidable, the alt text contains the text.
Charts and infographics
Give a short alt text with the main message (“Bar chart: mobile visits grew from 40% to 68% between 2020 and 2026”) and provide the data or a full description in text or a table nearby.
In code
<img src="workshop.jpg" alt="Mechanic replacing the chain of an e-bike in our Ghent workshop" width="1200" height="800">
<img src="divider.svg" alt="">
<button type="button"><svg aria-hidden="true">…</svg><span class="visually-hidden">Search</span></button>Frequently asked questions
Should alt text start with “image of”?
No. Screen readers already announce that it is an image. Start with the content.
Can AI write my alt texts?
AI can suggest descriptions, but it does not know why the image is on your page. Review every suggestion and adapt it to the context.