--- url: "https://web.dev/articles/semantics-and-screen-readers" titulek: "Semantics and screen readers | web.dev" h1: "Semantics and screen readers Stay organized with collections Save and categorize content based on your preferences." popis: "Assistive technologies rely on developers using semantic HTML. But what are semantics, and how do screen readers use them?" jazyk: "en" kanonicka: "https://web.dev/articles/semantics-and-screen-readers" drobecky: ["web.dev", "Resources"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:41:44" znaku: 4660 slov: 740 kodovani: "iso-8859-2" sha256: "66f0590c3bb8a9986af76b03cb34bb4b86a9e62ee8cff7d8932c239a0ee1b58c" --- Semantics and screen readers Stay organized with collections Save and categorize content based on your preferences. Rob Dodson Have you ever stopped to wonder *how* assistive technology, such as a screen reader, knows what to announce to users? The answer is that these technologies rely on developers marking up their pages with **semantic** HTML. But what are semantics, and how do screen readers use them? Affordances and semantics Before diving into semantics, it's helpful to understand affordances. An *affordance* is any object that offers its user the opportunity to perform an action. A classic example is the teapot: A teapot's handle is a natural affordance. This teapot doesn't need an instruction manual. Instead, its physical design conveys to the user how it should be operated. It has a handle, and because you've seen other objects in the world with similar handles, you can infer how you should pick it up and operate it. When we build graphical user interfaces, we use CSS to add **visual affordances** to our interface. For example, you might give a button a drop shadow and border so that it resembles an actual button in the real world. But for users who are unable to see the screen, these visual affordances aren't conveyed to them. Therefore, you need to make sure that your interface is constructed in a way that can convey these same affordances to assistive technology. This non-visual exposure of a UI element's affordances is called its *semantics*. Write semantic HTML The easiest way of conveying proper semantics is to use semantically rich HTML elements. Using CSS, it's possible to style the `