--- url: "http://a11yproject.com/posts/getting-started-aria/" titulek: "Background: Getting started with ARIA - The A11Y Project" h1: "Getting started with ARIA" popis: "Introduction to ARIA, describing Roles, States, and Properties and when to use ARIA in HTML." jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:59:38" znaku: 6514 slov: 1002 kodovani: "utf-8" sha256: "96871b23172d837b431bd971f18b015296c03532b37fdc118a23052303ef9270" --- Table of Contents ARIA (Accessible Rich Internet Applications), is a specification from the W3C and created to improve accessibility of applications by providing extra information to assistive technologies, such as screen readers, via attributes which could be added to HTML. Out of the box, screen readers will interpret HTML that conveys accessibility mapping information (e.g. a `button` but not a `div`). However, ARIA attributes can provide screen reader users with additional context and greater interactivity with content to correct misused HTML, or to convey information not available in HTML alone. ARIA, by design, has no effect on how elements are displayed or behave in browsers. It does not add new functionality and is meant to act only as an extra descriptive layer for screen readers. ARIA is also beholden to its host language and must adhere to the rules of what elements it can, and cannot, be used on. - [ARIA in HTML specification](https://www.w3.org/TR/html-aria/) : Defines how ARIA may be used within HTML. - [ARIA specification](https://www.w3.org/TR/wai-aria/) : Defines ARIA. ## ARIA attributes ARIA attributes are predefined in the spec and are divided into two categories, roles and states & properties. Both can be added directly in the markup or via JavaScript to progressively enhance markup as necessary. The properties and states should be updated as needed based on user interactions. There are rules behind which elements may receive types of ARIA attributes, as well as design guidelines for how and when these should be updated in common interactive widgets. - [ARIA Roles](https://www.w3.org/TR/wai-aria/#roles_categorization) : Section of the specification about roles. - [ARIA States and Properties](https://www.w3.org/TR/wai-aria/#states_and_properties) : Section of the specification about states and properties. - [ARIA Authoring Practices note](https://www.w3.org/TR/wai-aria-practices/) : Provides guidance on how to use ARIA. ## ARIA roles An ARIA role is added via a `role=""` attribute and does not change for an element once set. There are six categories of ARIA roles. ### Landmark Landmark roles identify large content areas and are used by screen readers for navigation. Ideally all content of a document would be placed within a landmark role. Doing so would ensure that all content could be navigated to by use of landmarks. E.g. `