WAI-ARIA
Accessible Rich Internet Applications (WAI-ARIA), published by the W3C, defines the roles, states and properties that expose custom user interface components to assistive technologies. With its companions AccName (how names and descriptions are computed) and ARIA in HTML (which ARIA each HTML element allows), and the ARIA Authoring Practices Guide (APG) for keyboard behaviour, this skill produces or reviews markup and scripts for accessible widgets.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. WAI-ARIA rules cite WAI-ARIA 1.2 sections unless marked otherwise; APG rules cite the page and heading. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: component author (building a widget), reviewer or auditor, or conformance checker author. User agent and assistive technology implementers are out of scope.
- Host language: HTML (the default; ARIA in HTML applies), SVG or another host.
- Component: which widget or pattern, for example modal dialog, menu button, combobox, tabs, grid or a live region, and whether a native HTML element already does the job.
- Target version: WAI-ARIA 1.2 (current, the default). WAI-ARIA 1.1 and WAI-ARIA 1.0 are legacy: read them and upgrade from them, never author them. WAI-ARIA 1.3 is a preview (posture: name): reserve its names, never ship its new roles or attributes as the only carrier of meaning. AccName 1.1 is the current AccName Recommendation; AccName 1.2 is a preview (posture: build) that WAI-ARIA 1.2 cites normatively, so predict names with it and test what it adds. ARIA in HTML is current. Graphics ARIA 1.0 and DPUB-ARIA 1.1 are each the current line of their family. SVG-AAM is current with posture track. DPub-AAM 1.0 is current. See
references/versions.md. - Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources first, check the W3C TR pages for WAI-ARIA, AccName and ARIA in HTML for a newer maturity level, and update the pins.
Invariants
- Native HTML first. When a host-language feature with the same semantics exists, authors SHOULD use it rather than repurpose another element with ARIA (§8.5; Using ARIA §2.1).
- No abstract roles. Authors MUST NOT use
command,composite,input,landmark,range,roletype,section,sectionhead,select,structure,widgetorwindow(§5.2.1, §5.3.1). - One meaningful role token. The first non-abstract token wins and an unknown token is ignored (§4.1, §9.1); write role tokens in lowercase (ARIA in HTML §4.4).
- Required states are set. Authors MUST provide a non-empty value for each required state or property, for example
aria-checkedoncheckboxandaria-levelonheading(§5.2.2). - Structure is complete. A role with required owned elements owns at least one of them, a role with a required context role is contained in or owned by it, and authors MUST set
aria-busy="true"while required children are still loading (§5.2.6, §5.2.7). - Attributes fit the role. Authors MUST only use non-global states and properties on roles that support them, and MUST NOT use prohibited ones (§8.6, §5.2.5).
- Names follow the role. Name-required roles get an accessible name; authors MUST NOT put
aria-labeloraria-labelledbyon name-prohibited roles such asgeneric,paragraphorcode(§5.2.8, §5.2.8.4, §5.2.8.6; ARIA in HTML §4.1). - No conflict with HTML. Authors MUST NOT use ARIA in a way that conflicts with the ARIA in HTML element and attribute tables, and SHOULD NOT set an aria-* attribute next to its native equivalent, because the native one wins (ARIA in HTML §1, §4, §4.2; §8.5).
- Hidden means equivalent. Authors using
aria-hidden="true"on visible content MUST expose equivalent meaning and function (§6.7 aria-hidden); never on focusable elements orbody(ARIA in HTML §4, §4.2). - Composites manage focus. Authors MUST manage focus in
grid,listbox,menu,menubar,radiogroup,tree,treegridandtablist(§4.3.1), and every interactive ARIA control is keyboard operable (Using ARIA §2.3). - Active descendants are owned.
aria-activedescendantMUST refer to an owned element, or for a combobox, textbox or searchbox to an element owned by the element it controls (§6.7 aria-activedescendant). - One owner. Authors MUST NOT list an element in more than one
aria-owns(§6.7 aria-owns). - Modals are self-contained. With a modal displayed, authors MUST ensure the interface can be controlled using only its descendants (§6.7 aria-modal), and MUST name every
dialog(§5.4 dialog). - The combobox follows 1.2. Authors MUST set
aria-expandedandaria-controlson the combobox, give the popup rolelistbox,tree,gridordialog, setaria-haspopupwhen it is not a listbox, and setaria-autocompletewhen the input autocompletes (§5.4 combobox). - Errors are pertinent. Authors MUST use
aria-errormessagewitharia-invalid, and MUST show the message only while it is pertinent (§6.7 aria-errormessage). - Regions are labelled. Authors MUST give each
regiona brief label (§5.4 region).
Workflow
- Pick the version. Author against WAI-ARIA 1.2 and ARIA in HTML, predict names with AccName 1.2, and record any WAI-ARIA 1.3 names you reserve.
->
references/versions.md✓ The target version is recorded, and no legacy markup or 1.3-only role or attribute is being shipped. - Decide native or ARIA. Look for an HTML element or attribute that already does the job; otherwise check which roles the base element allows.
->
references/aria-in-html.md✓ Every explicit role is allowed on its element by the ARIA in HTML table, and none repeats the implicit role. - Assign roles and structure. Pick concrete roles, then add their required owned elements, context roles and required states.
->
references/roles-states-properties.md✓ No abstract role, no missing required child or parent, no missing required state. - Name and describe. Give every name-required element a name from visible text where possible, and leave name-prohibited elements unnamed.
->
references/accessible-names.md✓ The computed name of each control matches the intended name in each target browser's accessibility tree. - Wire states and relationships. Keep
aria-expanded,aria-selected,aria-checked,aria-controlsandaria-activedescendantin sync with the UI on every change, from keyboard and pointer. ->references/roles-states-properties.md✓ Every state change in the UI is reflected in the attributes, and every ID reference resolves. - Implement keyboard and focus. Follow the APG pattern for the widget: tab stops, arrow keys, Escape, initial focus and focus return.
->
references/apg-patterns.md✓ The widget is fully operable from the keyboard, focus is always visible, and focus never falls back tobody. - Announce changes. Use
alert,statusoraria-livefor updates that happen away from focus, at the lowest politeness that works. ->references/apg-patterns.md✓ Each dynamic message is announced once, without moving focus, and nothing usesassertivewithout need. - Upgrade (only when asked). Follow the upgrade section for each step from the source line to WAI-ARIA 1.2.
->
references/versions.md✓ The upgraded component passes the Verify list below, and users get the same names, roles, states and keys as before.
Verify before done
- No abstract role, and no role on an element whose ARIA in HTML row says "No role" (§5.2.1; ARIA in HTML §4).
- Every required owned element, context role and required state is present (§5.2.2, §5.2.6, §5.2.7).
- No
aria-labeloraria-labelledbyon a name-prohibited role, and every name-required role has a non-empty name (§5.2.8). - No aria-* attribute duplicates a native HTML attribute on the same element (ARIA in HTML §4.2).
- No
aria-hidden="true"orrole="presentation"on a focusable element, and noaria-hidden="true"on an ancestor of a visible interactive element (ARIA in HTML §4.2; Using ARIA §2.4). - Each composite has one tab stop, and arrow keys move focus as the APG pattern describes (§4.3.1; APG Developing a Keyboard Interface).
- Every
aria-activedescendant,aria-controls,aria-labelledbyandaria-describedbyID resolves to the right element (§8.6.1). - Modal dialogs trap Tab, close on Escape, and return focus to the invoking element (APG Dialog (Modal) Pattern).
- No deprecated feature (
aria-grabbed,aria-dropeffect,directory) in new content (§3.5; ARIA in HTML §4.3). - Nothing from WAI-ARIA 1.3 is the only carrier of meaning (posture: name).
Reference index
references/versions.md: every WAI-ARIA, AccName and ARIA in HTML line with its status, what each changed, upgrade steps from 1.1 and 1.0, and the 1.3 and AccName 1.2 previews. Load for steps 1 and 8.references/aria-in-html.md: the rules of ARIA use, ARIA in HTML author requirements, allowed roles for common elements, HTML attribute parity, deprecated features and case. Load for step 2.references/roles-states-properties.md: role categories, abstract roles, required owned elements and context roles, required and global states, hiding and presentational roles, relationship and live region attributes, deprecated features, common mistakes. Load for steps 3 and 5.references/accessible-names.md: name from author, contents or prohibited, the AccName computation steps, the description computation, authoring rules and debugging. Load for step 4.references/apg-patterns.md: focus fundamentals (roving tabindex,aria-activedescendant, disabled items) and the dialog, menu button, menu and menubar, combobox, listbox, tabs, disclosure, grid, tree view and alert patterns. Load for steps 6 and 7.
Related skills
wcag, for the WCAG success criteria that ARIA markup helps meet:npx skills add ScaleDockHQ/scaledock-skills --skill wcag
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- Accessible Rich Internet Applications (WAI-ARIA) 1.2: W3C Recommendation, 2023-06-06, checked 2026-10-05.
- Accessible Rich Internet Applications (WAI-ARIA) 1.1: W3C Recommendation, 2017-12-14, checked 2026-10-05.
- Accessible Rich Internet Applications (WAI-ARIA) 1.0: W3C Recommendation, 2014-03-20, checked 2026-10-05.
- WAI-ARIA 1.0 Roles: W3C Recommendation, 2014-03-20, checked 2026-10-05.
- Accessible Rich Internet Applications (WAI-ARIA) 1.3: W3C Working Draft, 2026-06-04, checked 2026-10-05. Draft posture: name.
- WAI-ARIA editor's draft: W3C Editor's Draft, 2026-10-02, same roles and attributes as the 1.3 Working Draft, checked 2026-10-05. Draft posture: name.
- Accessible Name and Description Computation 1.2: W3C Working Draft, 2026-10-02, checked 2026-10-05. Draft posture: build.
- Accessible Name and Description Computation 1.1: W3C Recommendation, 2018-12-18, checked 2026-10-05.
- ARIA in HTML: W3C Recommendation, 2026-08-11, checked 2026-10-05.
- Using ARIA: W3C Discontinued Draft, 2026-02-24, informative, checked 2026-10-05.
- ARIA Authoring Practices Guide: W3C WAI resource, published site as read 2026-10-05 (w3c/aria-practices main at 0f765e4, 2026-09-30), checked 2026-10-05.
- APG Patterns: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Dialog (Modal) Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Alert Dialog Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Menu Button Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Menu and Menubar Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Combobox Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Listbox Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Tabs Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Disclosure (Show/Hide) Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Grid Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Tree View Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Alert Pattern: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Developing a Keyboard Interface: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- APG Providing Accessible Names and Descriptions: W3C WAI resource, as read 2026-10-05, checked 2026-10-05.
- WAI-ARIA Graphics Module: W3C Recommendation, 2 October 2018 (REC-graphics-aria-1.0-20181002), checked 2026-10-06.
- Digital Publishing WAI-ARIA Module 1.1: W3C Recommendation, 12 June 2025 (REC-dpub-aria-1.1-20250612), checked 2026-10-06.
- Core Accessibility API Mappings 1.2: W3C Candidate Recommendation Draft, 23 September 2026 (CRD-core-aam-1.2-20260923), checked 2026-10-06.
- HTML Accessibility API Mappings 1.0: W3C Working Draft, 5 October 2026 (WD-html-aam-1.0-20261005), checked 2026-10-06.
- SVG Accessibility API Mappings: W3C Working Draft, 24 September 2026 (WD-svg-aam-1.0-20260924), checked 2026-10-06.
- Digital Publishing Accessibility API Mappings: W3C Recommendation, 14 December 2017 (REC-dpub-aam-1.0-20171214), checked 2026-10-06.