Ask why the image is on the page
The same picture can play different roles in different places. A photograph illustrating a mood has a different purpose from a photograph that documents a defect. Decide what a reader would lose if the image were unavailable. That is the starting point for a useful text alternative.
For a genuinely decorative HTML image, an empty alt attribute can allow assistive technology to skip it. An informative image needs text that conveys its relevant meaning. Avoid using the filename as a substitute for that decision.
Describe function when the image is a control
If an image is the only content of a link, its accessible name should explain the destination or action. “Blue arrow” may describe its appearance while failing to explain what happens when it is activated. Surrounding text can sometimes supply the name, so review the complete control.
Do not repeat the same phrase in several adjacent places without a reason. Repetition can make a page tiring to navigate. Keep the label concise enough to use, but specific enough to distinguish it from neighboring controls.
Give complex information room
A chart or diagram may need more than one short attribute can reasonably contain. Provide the main point and explain the underlying relationships in nearby text. Where exact values matter, offer an accessible table or another suitable representation.
Test the page with images unavailable and read the text alternatives in order. Can you still follow the argument? Image descriptions are part of the editorial process because they clarify what evidence or meaning the visual is supposed to provide.
Further reading
Original sources and related references. These links lead to independent websites; inclusion does not imply a partnership or endorsement.
- W3C Web Accessibility Initiative — Images tutorial ↗
Explains different image purposes and how text alternatives should reflect them. Particularly useful for charts and linked images.
- W3C Web Accessibility Initiative — Page structure tutorial ↗
Shows how meaningful regions and headings support navigation and understanding. Useful when reviewing a long editorial page.