{"canonical_url":"https://engineer.company/glossary/alternative-text/","content_markdown":"# Alternative text\n\n## What it is\n\nAlternative text gives an image a textual equivalent for the context in which it\nis used. A reader can encounter that text through a screen reader or when an\nimage cannot be loaded. The useful alternative explains what the image\ncontributes to the page. It can describe an important observation, name the\ndestination of a linked image or provide a short equivalent for text that\nappears only inside the image.\n\nThe purpose determines what to write. A photograph of a machine might show the\nlocation of its emergency stop in a maintenance guide. The same photograph might\nillustrate workplace conditions in a case study. Each use can need different\ndetails. For a decorative image that adds no information, an explicit `alt=\"\"`\nlets assistive technology skip the image. A missing alt attribute can produce a\ndifferent result.\n\nComplex images can need more than a short description. A chart can have a\nconcise alternative identifying its subject and an adjacent explanation or table\ncarrying the figures. This arrangement lets a reader understand the result and\ninspect the details without receiving the entire chart as one unbroken label.\nKeep the relationship between those pieces clear and test their reading order.\n\n## Why it matters\n\nAn image can carry evidence the surrounding prose leaves implicit. A\nbefore-and-after screenshot might show where layout changed or how a status\nbecame visible. A reader who cannot see the screenshot still needs the part that\nsupports the conclusion. A carefully written alternative or nearby description\ncan make that evidence available without listing every insignificant object on\nthe screen.\n\nImage-based controls have a different consequence. A linked icon can carry the\naccessible name of the link if it supplies its only text equivalent. The useful\nwording describes the action or destination. If there is already an adjacent\nvisible label within the same control that supplies the name, an empty\nalternative for a redundant icon can avoid an extra announcement. Check the\ncomplete control, since the text a user hears follows the markup and the\naccessible name computation.\n\nTranslation also matters. A meaningful description in one language is useful\nonly to its intended readers, and awkward text order can obscure the point when\na description is announced in another language. Place the wording where\nlocalisers can see its context. Review an image and the text around it together\nin each edition that uses a different description.\n\n## What it looks like in practice\n\nConsider a project page with a photograph, a decorative separator and a results\nchart. Describe what the photo shows where it supports the work, such as the\narrangement of equipment that the article discusses. Mark the separator as\ndecorative if it adds no information. Give the chart a short identification and\nput the actual comparison or data table near it. Then read the page in document\norder, including labels and captions.\n\nThink separately about the caption. A photo caption can identify the location or\ncredit its maker. The alternative can state what the image shows that matters to\nthis article. If the caption already delivers the essential point to every\nreader, decide whether a second description adds anything. Test the composed\nresult with similar adjacent elements, because repeated or overly long\nannouncements can make it harder to find the next passage.\n\nEngineer's [site credits](/credits/) describe the role of human judgement in\nchecking whether an image's alternative says the useful thing. This is practical\nguidance for the project-page example. Tools can inspect whether attributes and\nstructure are present. A person can compare the text with the image's actual\nrole and decide whether it makes the intended evidence available.\n\nReview the page after smaller viewports select a different crop. If the\nimportant feature has moved out of view, the visual composition and the\ndescription may disagree. Test the text and image together at the size users\nactually see.\n\nA content editor can check a chart description by answering the question without\nopening the image. If the picture shows that response times fell after a\nrelease, can the reader learn when, by how much and over which period from the\nsurrounding material? Include units in any alternative table. For a thumbnail\nthat opens an enlarged chart, the link also needs a name that explains what\nopening it does. Verify this with a screen reader on the actual page. The\naccessible name of a control and the explanation of a chart are separate pieces\nof content, even when one element supplies both.\n\n## Where it goes wrong\n\nAn alternative can name the type of image while leaving out its purpose. A chart\ndescribed only as Graph tells a reader little about the comparison. Begin with\nthe question the image answers and supply the answer or a convenient path to the\ndetails. Check the description at the point where an ordinary reader would\nencounter it.\n\nAnother mistake is using the same label on a group of images that perform\ndifferent jobs. A repeated label can make the images hard to distinguish,\nparticularly in a gallery or list of actions. Give them alternatives grounded in\ntheir individual purpose. Use an empty alternative where the image contributes\nonly decoration to content already explained beside it.\n\nFinally, keep the wording attached to the current design and data. Update it\nwhen an image, crop, caption or label changes. A useful check can show whether\ntext is present and how it participates in the document's semantics. The\neditorial review should explain what a reader learns from the alternative and\nwhether that is the useful result the image was meant to provide.\n\n## Further reading\n\n- [WAI's alternative-text decision tree](https://www.w3.org/WAI/tutorials/images/decision-tree/).\n  Helps authors choose alternatives based on an image's purpose.\n- [WCAG Non-text Content](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html).\n  Explains equivalent purpose and common situations.\n- [The HTML Standard on alt text](https://html.spec.whatwg.org/multipage/images.html#alt).\n  Describes applicable requirements and examples.\n\n\u003chttps://engineer.company/glossary/alternative-text/\u003e\n","date_modified":"2026-11-25T07:18:46Z","description":"Choose text alternatives for informative, functional and decorative images, and make a chart's useful details available in text.","formats":{"gemtext":"https://engineer.company/glossary/alternative-text/index.gmi","gopher":"https://engineer.company/glossary/alternative-text/gophermap","html":"https://engineer.company/glossary/alternative-text/","json":"https://engineer.company/glossary/alternative-text/index.json","markdown":"https://engineer.company/glossary/alternative-text/index.md","pdf":"https://engineer.company/glossary/alternative-text/index.pdf"},"kind":"page","language":"en","title":"What is alternative text?","url":"https://engineer.company/glossary/alternative-text/","version":1}