How to Write Image Alt Text That Meets WCAG, Using the W3C Tutorial and GOV.UK Rules
WCAG 2.2 Success Criterion 1.1.1 requires a text alternative that serves the same purpose as an image, unless the image is decorative. This guide walks through the W3C Images Tutorial and alt-text Decision Tree, and explains how GOV.UK's publishing rules put the same requirement into body text, captions, and data tables.
If an image carries information, people who cannot see it still need that information. Web Content Accessibility Guidelines (WCAG) 2.2 Success Criterion 1.1.1 Non-text Content, a Level A requirement, says non-text content presented to users must have a text alternative that serves the equivalent purpose, with defined exceptions for controls, time-based media, tests, CAPTCHA, and decoration.
The W3C Web Accessibility Initiative's Images Tutorial and alt-text Decision Tree, together with GOV.UK's content guidance on images and the GOV.UK Design System's image guidance, show how to decide what to write — and when the alternative should be empty because the image is decorative. The Understanding document for Success Criterion 1.1.1 was updated on 6 September 2026. The method below comes from those official pages.
Key facts at a glance
- WCAG 2.2 Success Criterion 1.1.1 is Level A. It requires a text alternative that serves the equivalent purpose, unless the image is decorative or another listed exception applies.
- The W3C Images Tutorial groups images by function: informative, decorative, functional, images of text, complex images, groups of images, and image maps. Each type gets a different alternative.
- The W3C alt Decision Tree starts with the image's purpose. If the image is decorative or redundant, the correct alternative is empty.
- GOV.UK tells publishers not to use an image alone to provide information, to avoid images that contain text, and to describe charts as if speaking to someone over the phone, including important trends rather than a vague caption.
- On GOV.UK's publishing system, authors are often told to leave the CMS alt field blank and put the equivalent information in body text, a caption, or a data table. That is a publishing-tool convention. In ordinary HTML, an informative image still needs a text alternative; an empty alt attribute without nearby equivalent text would not meet 1.1.1.
Start with WCAG 1.1.1 and the W3C image types
Write the alternative to serve the same purpose as the image, not to announce that an image is present. A phrase such as "image of a chart" or "photograph" fails because it names the format instead of the content. The Understanding page, updated 6 September 2026, also says that purely decorative or formatting images should be implemented so assistive technology can ignore them.
The W3C Images Tutorial is the official breakdown by image type. Informative images convey information that is not already in the nearby text; the alternative should carry the same information. If a photograph shows a minister signing a document, and that fact is not already written beside the image, the alternative should state that fact, not "photo of a meeting." Decorative images add visual interest but no information; the W3C approach is an empty alternative (in HTML, an alt attribute with no text) so a screen reader skips the file instead of announcing a filename. A generic picture of a laptop at the top of a technology article is the usual example.
Functional images are links or buttons. The alternative should describe the action or destination, not the picture: a magnifying-glass icon that submits a search should be "Search," not "magnifying glass." Images of text should have an alternative that contains the words shown, and that should be a last resort. Both W3C guidance and GOV.UK advise against putting essential words only inside a picture, because those words do not resize cleanly and are harder for some people to read.
Complex images — charts, diagrams, and detailed illustrations — need a short alternative that identifies the image and a longer description in the page itself. Groups of images that together convey one point, and image maps with multiple clickable regions, need alternatives for each piece of information or each destination.
Decide the type before you draft a sentence. An image can look like a photograph and still be functional if it is a link, or decorative if the same information is already in the heading. Getting the type wrong is why alt text ends up too long, too cute, or empty when it should not be.
Walk the W3C Decision Tree before you type a phrase
The Decision Tree is a purpose test, not a writing tip. It asks what the image is doing on the page, then points you to the matching pattern from the tutorial.
If the same content is already in the adjacent heading or paragraph, the image may be decorative, and the alternative should be empty. Repeating the heading in the alt attribute creates a double announcement for screen-reader users and adds no information. If the image is a control or a link, name the function or destination instead of describing the artwork. If the image contains text, include that text in the alternative, and ask whether the text belongs in HTML in the first place. If the image is a chart or diagram, give a short identifying alternative and put the full explanation — or a data table — in the page, because a short label cannot carry a time series. The tree also points back to 1.1.1's special cases for CAPTCHA and similar tests.
When you write a short alternative, keep it equivalent and specific. State the relevant fact ("Line chart of monthly applications, rising from January to June") rather than a tour of the axes with no finding. Do not start with "image of" or "graphic of," and do not pack keywords into the attribute for search engines. That is not the purpose of 1.1.1, and it makes the alternative worse for the people who rely on it.
How GOV.UK handles descriptions, charts, and the alt field
GOV.UK starts even earlier than alt text: question whether the image should be there. The Design System says to use an image only when there is a real user need, and to make sure the written content contains all of the information shown. Photography should represent something lifelike, not an abstract concept, and stock photographs are discouraged. Images that contain text are to be avoided. If colour is used in a chart, colour alone must not be the only way to tell segments or lines apart, and contrast between lines, text, and background must be high enough for people who cannot rely on colour differences.
The content-and-publishing guidance splits images into decorative and informative, then adds stricter rules for charts, diagrams, and infographics. Decorative examples include a generic picture of laptops on a technology post. Informative images may help people understand the written text in another way, but they must not be the only place the information appears. When a person is named in a photograph, GOV.UK uses the caption and credit field for the name. When you describe an informative image in body text, describe it as though there is no image on the page: write "the minister gave a speech," not "an image of the minister giving a speech."
Charts and diagrams are treated as data, not as decoration. GOV.UK asks publishers to use SVG files for images that contain useful information, because SVG scales without pixelating when someone zooms with magnification software, and it has no minimum pixel size. Raster images that are not SVG should be at least 960 pixels wide by 640 pixels high at 72 DPI. For charts, authors are told to leave the CMS alt field blank and to add at least one of: a description directly under the chart, a table of the raw data, or a link to the raw data in an accessible file. The description should explain what is happening in the data and any important trends, as if telling someone over the phone. A sentence that only names the axes is too broad. A long time series is usually better as a trend description than as a huge table.
Every chart should have two titles: a headline title that summarises the main message, and a statistical title that describes the data shown. The guidance's example is a headline, "Oliver stays on top of baby names list," followed by "Figure 1: Number of baby boys given the top 10 most popular names, England, 2020." Diagrams should follow a normal left-to-right reading direction, avoid overlapping connector lines, use simple shapes, and make the starting point of a process obvious; those relationships must also be explained in the body text. Infographics, which can force screen-magnifier users to scroll in two directions and can blur when zoomed if they are not SVG, need a plain-text version of everything they show, placed next to the image. File names are part of the same discipline: GOV.UK requires a meaningful, unique name with no special characters before upload, for example delegatesatCOP_2022.jpg.
The point of friction for teams outside GOV.UK is the instruction, in that CMS, not to use the alt text field for some images and to leave it blank for charts. That does not repeal WCAG 1.1.1. GOV.UK is requiring the text alternative to live in visible body text, a caption, or a data table — which can serve the equivalent purpose if it is complete. If you are writing ordinary HTML, Markdown, or a CMS that exposes the alt attribute to assistive technology and does not automatically announce nearby captions the same way, follow the W3C pattern: empty alt only for decorative images; a short equivalent alternative for informative images; a short identifier plus a long description in the page for complex images. Do not copy a blank alt field onto an informative image and call it compliant.
What this means for you
If you write or edit web pages, treat alt text as a decision about purpose, not as a box to fill with a caption. Run the W3C Decision Tree, pick the image type, and write an equivalent alternative — or an empty one. Check that a person who never sees the file would still get the fact, the function, or the trend.
If you publish charts, borrow GOV.UK's test even when you are not on that platform: a headline that states the finding, a statistical title that states the data, a description or table in the page, SVG where you can, and no reliance on colour alone. The alt attribute, when you use it, should identify the chart; it should not be the only place the finding exists. If you manage a public-service CMS with its own alt-field rules, map the local instruction ("leave this field blank") to the WCAG requirement ("a text alternative must exist somewhere equivalent"). The standard is the same for readers in the United States, the United Kingdom, Canada, and Australia; only the publishing control changes.