---
url: "https://web.dev/articles/labels-and-text-alternatives"
titulek: "Labels and text alternatives | web.dev"
h1: "Labels and text alternatives Stay organized with collections Save and categorize content based on your preferences."
popis: "For a screen reader to present a spoken UI to the user, meaningful elements must have proper labels or text alternatives."
jazyk: "en"
kanonicka: "https://web.dev/articles/labels-and-text-alternatives"
drobecky: ["web.dev", "Resources"]
zdroj: "live"
wayback_snapshot: ""
stazeno: "2026-09-13 23:13:02"
znaku: 7847
slov: 1233
kodovani: "iso-8859-2"
sha256: "71cbf0de916709e8751b80c173b4877532d8b2b0bb1df09f995efd5eccdeefc0"
---
Labels and text alternatives
Stay organized with collections
Save and categorize content based on your preferences.
Rob Dodson
In order for a screen reader to present a spoken UI to the user, meaningful
elements must have proper labels or text alternatives. A label or text
alternative gives an element its accessible **name**, one of the key properties
to [express element semantics in the accessibility tree](/articles/semantics-and-screen-readers#semantic_properties_tree). When an element's name is combined with the element's **role**, it gives the
user context so they can understand what type of element they're interacting
with and how it is represented on the page. If a name is not present, then a
screen reader only announces the element's role. Imagine trying to navigate
a page and hearing, "button," "checkbox," "image" without any additional
context. This is why labeling and text alternatives are crucial to a good,
accessible experience. Inspect an element's name You can check an element's accessible name in Chrome's DevTools: Right-click on an element and choose **Inspect**. This opens the DevTools
Elements panel. In the Elements panel, look for the **Accessibility** pane. It may be hidden
behind a `Âť` symbol. In the **Computed Properties** drop-down, look for the **Name** property.
DevTools accessibility pane showing the computed name for a button.
Whether you're looking at an `img` with `alt` text or an `input` with a
`label`, all of these scenarios result in the same outcome: giving an
element its accessible name. Check for missing names There are different ways to add an accessible name to an element,
depending on its type. The following table lists the most common element types
that need accessible names and links to explanations for how to add them. Element type How to add a name
HTML document
Label documents and frames `` or `