{"canonical_url":"https://engineer.company/glossary/accessible-name/","content_markdown":"# Accessible name\n\n## What it is\n\nAn accessible name is the text a platform exposes as the identifying name of an\ninterface element to assistive technology. A browser can use the text inside a\nbutton, an associated form label, or another source specified by the name\ncomputation rules. The result helps a screen reader announce the control and\ngives other tools information they can use to identify it.\n\nThe accessible name is part of an element's semantics. Role, state and\ndescription provide related information. A button can expose both the name\nDownload PDF and a disabled state. A description can add details such as the\ntype of file or a reason for being disabled. State can describe whether a\ndisclosure is expanded. Keeping the name focused on identity helps people find\nand use the control.\n\nThe accessible name computation can draw from different sources in a defined\norder. Attributes that supply or reference text can change the result a browser\nexposes. A visible label can already name a native element. Inspect the computed\nvalue when adding a custom label, especially when markup combines text, icons\nand references. Test the result in each state that changes what the control\ndoes.\n\n## Why it matters\n\nAn icon-only control can be clear to somebody who recognises its image and hard\nto identify when the image is unavailable. A screen reader may announce a\ngeneric role or a symbol name with little information about the task. A name\nsuch as View PDF makes the action clear. A second control called Download PDF is\ndistinguishable even though both refer to the same document.\n\nVisible and accessible wording influence other interaction methods as well.\nPeople using speech control can refer to text they see. When a control has a\nvisible label, make the accessible name include that wording in a useful order.\nAn added description can provide details without making the spoken control name\ndifficult to match. Test meaningful distinctions between several similar\ncontrols on one page.\n\nNames can become stale as features change. A control that starts or stops a\nprocess may need a name reflecting its next action, while a toggle can expose\nits state through the relevant semantic property. Decide which information\nbelongs in each channel and keep it consistent across states and languages. A\ntext label that names a real action is easier to review and localise than a\nstring that describes artwork.\n\n## What it looks like in practice\n\nImagine a page with a list of documents, each offering separate view and\ndownload controls. Give the controls names that distinguish the action and the\ndocument where that distinction is needed. Test a small section containing two\ndocuments with similar titles. A person moving through the controls should be\nable to choose the second document's download without having to infer the\npurpose from its position.\n\nInspect the accessibility tree for the normal state, the focused state and any\nstate that changes the possible action. Compare the actual spoken or computed\nname with visible text. If a reference supplies the name, check that its target\nexists and that the order of combined text makes sense in the page's own\nlanguage. Try the interface after changing an item's title and look for controls\nthat still refer to the old one.\n\nEngineer's\n[icon-control accessibility case study](/portfolio/named-all-17-icons-for-screen-readers/)\ndescribes naming actions in a native app and updating names for controls whose\nactions depend on state. It also describes a linter that checks for a nearby\nlabel and explains that the label's usefulness still needs human review. The\ndocument example applies the same distinction to web controls. A structural test\ncan establish that a name exists. A rendered and contextual review can establish\nthat it helps a user choose the intended operation.\n\nRecord a known useful announcement alongside the fixture. Check how the control\nis reached and how similar controls appear together. On a translated page,\ninspect punctuation and word order as well as whether the control is named.\nThese checks give a maintainer a meaningful result when UI copy changes later.\n\n## Where it goes wrong\n\nA label can override useful visible text. For example, an icon and a nearby word\nmight already name a button, but an added attribute can replace that name with\ngeneric wording. Look at the computed result before adding another source.\nPrefer an ordinary visible label when the design supports it, and give an\nicon-only control text that communicates its action.\n\nAnother pitfall is assuming that a title, tooltip or placeholder will always\nsupply the intended name. Determine which native mechanism applies to that\nelement and check that the text is present when the component can be operated.\nFor a form control, test the input with its label and error message both\npresent. Name and description should still make sense as the user enters data.\n\nControl labels are often assembled from several pieces of text. A reference to\nan action word and a document title can be useful, but the order that reads well\nin one language may be awkward in another. Keep the complete name available to\ntranslators and check its final rendering. Include long item names and several\ncontrols with similar words. Spacing, punctuation and abbreviation choices can\ndetermine whether the name is easy to understand when announced outside its\nvisual context.\n\nFinally, treat automated checks as evidence for the properties they inspect. An\naudit may confirm that a control has a name while leaving its meaning to a\nreviewer. Listen to or inspect the actual result in the relevant context. A\nuseful accessible name should remain understandable when read alongside other\ncontrols or reached by a person who has not seen the icon.\n\n## Further reading\n\n- [W3C Accessible Name and Description Computation](https://www.w3.org/TR/accname-1.1/).\n  Specifies how names and descriptions are calculated.\n- [WAI guidance on accessible names and descriptions](https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/).\n  Explains practical choices for controls and widgets.\n- [WCAG Name, Role, Value](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html).\n  Describes why interface semantics need to reach assistive technology.\n\n\u003chttps://engineer.company/glossary/accessible-name/\u003e\n","date_modified":"2026-11-25T07:18:46Z","description":"Check the computed name of an icon control and verify that its accessible and visible labels support the same task.","formats":{"gemtext":"https://engineer.company/glossary/accessible-name/index.gmi","gopher":"https://engineer.company/glossary/accessible-name/gophermap","html":"https://engineer.company/glossary/accessible-name/","json":"https://engineer.company/glossary/accessible-name/index.json","markdown":"https://engineer.company/glossary/accessible-name/index.md","pdf":"https://engineer.company/glossary/accessible-name/index.pdf"},"kind":"page","language":"en","title":"What is an accessible name?","url":"https://engineer.company/glossary/accessible-name/","version":1}