Reference

WAI-ARIA states and properties

WAI-ARIA 1.2 defines 48 aria-* attributes: 10 states, such as aria-expanded, aria-checked and aria-hidden, which change with interaction, and 38 properties, such as aria-label, aria-labelledby, aria-describedby and aria-live, which describe an element more permanently. Two of them, aria-grabbed and aria-dropeffect, have been deprecated since ARIA 1.1. An attribute outside this list is not ARIA: assistive technology ignores it, and whatever it was meant to convey never reaches the user.

The states and properties defined by WAI-ARIA 1.2 (W3C Recommendation), with their definition and what the VeriFixScan ARIA checks do with each.
AttributeKindDefinitionStatus in ARIA 1.2In a scan
aria-activedescendantPropertyIdentifies the currently active element when DOM focus is on a composite widget, combobox, textbox, group, or application.CurrentName recognised.
aria-atomicPropertyIndicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.CurrentName recognised.
aria-autocompletePropertyIndicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made.CurrentName recognised.
aria-busyStateIndicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.CurrentName recognised.
aria-checkedStateIndicates the current "checked" state of checkboxes, radio buttons, and other widgets.CurrentName recognised.
aria-colcountPropertyDefines the total number of columns in a table, grid, or treegrid.CurrentName recognised.
aria-colindexPropertyDefines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.CurrentName recognised.
aria-colspanPropertyDefines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.CurrentName recognised.
aria-controlsPropertyIdentifies the element (or elements) whose contents or presence are controlled by the current element.CurrentName recognised. Referenced ids must exist (accessibility.aria_references).
aria-currentStateIndicates the element that represents the current item within a container or set of related elements.CurrentName recognised.
aria-describedbyPropertyIdentifies the element (or elements) that describes the object.CurrentName recognised. Referenced ids must exist (accessibility.aria_references).
aria-detailsPropertyIdentifies the element that provides a detailed, extended description for the object.CurrentName recognised.
aria-disabledStateIndicates that the element is perceivable but disabled, so it is not editable or otherwise operable.CurrentName recognised.
aria-dropeffectPropertyIndicates what functions can be performed when a dragged object is released on the drop target.Deprecated in ARIA 1.1Name recognised.
aria-errormessagePropertyIdentifies the element that provides an error message for an object.CurrentName recognised.
aria-expandedStateIndicates whether a grouping element owned or controlled by this element is expanded or collapsed.CurrentName recognised.
aria-flowtoPropertyIdentifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.CurrentName recognised.
aria-grabbedStateIndicates an element's "grabbed" state in a drag-and-drop operation.Deprecated in ARIA 1.1Name recognised.
aria-haspopupPropertyIndicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.CurrentName recognised.
aria-hiddenStateIndicates whether the element is exposed to an accessibility API.CurrentName recognised. true on a focusable element is flagged (accessibility.aria_hidden).
aria-invalidStateIndicates the entered value does not conform to the format expected by the application.CurrentName recognised.
aria-keyshortcutsPropertyIndicates keyboard shortcuts that an author has implemented to activate or give focus to an element.CurrentName recognised.
aria-labelPropertyDefines a string value that labels the current element.CurrentName recognised. An empty value is flagged.
aria-labelledbyPropertyIdentifies the element (or elements) that labels the current element.CurrentName recognised. Referenced ids must exist (accessibility.aria_references).
aria-levelPropertyDefines the hierarchical level of an element within a structure.CurrentName recognised.
aria-livePropertyIndicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.CurrentName recognised.
aria-modalPropertyIndicates whether an element is modal when displayed.CurrentName recognised.
aria-multilinePropertyIndicates whether a text box accepts multiple lines of input or only a single line.CurrentName recognised.
aria-multiselectablePropertyIndicates that the user may select more than one item from the current selectable descendants.CurrentName recognised.
aria-orientationPropertyIndicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.CurrentName recognised.
aria-ownsPropertyIdentifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.CurrentName recognised.
aria-placeholderPropertyDefines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.CurrentName recognised.
aria-posinsetPropertyDefines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.CurrentName recognised.
aria-pressedStateIndicates the current "pressed" state of toggle buttons.CurrentName recognised.
aria-readonlyPropertyIndicates that the element is not editable, but is otherwise operable.CurrentName recognised.
aria-relevantPropertyIndicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.CurrentName recognised.
aria-requiredPropertyIndicates that user input is required on the element before a form may be submitted.CurrentName recognised.
aria-roledescriptionPropertyDefines a human-readable, author-localized description for the role of an element.CurrentName recognised.
aria-rowcountPropertyDefines the total number of rows in a table, grid, or treegrid.CurrentName recognised.
aria-rowindexPropertyDefines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.CurrentName recognised.
aria-rowspanPropertyDefines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.CurrentName recognised.
aria-selectedStateIndicates the current "selected" state of various widgets.CurrentName recognised.
aria-setsizePropertyDefines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.CurrentName recognised.
aria-sortPropertyIndicates if items in a table or grid are sorted in ascending or descending order.CurrentName recognised.
aria-valuemaxPropertyDefines the maximum allowed value for a range widget.CurrentName recognised.
aria-valueminPropertyDefines the minimum allowed value for a range widget.CurrentName recognised.
aria-valuenowPropertyDefines the current value for a range widget.CurrentName recognised.
aria-valuetextPropertyDefines the human readable text alternative of aria-valuenow for a range widget.CurrentName recognised.

States, properties, and why the difference matters

A state is expected to change while the page is used: a menu button's `aria-expanded` goes from false to true, a checkbox's `aria-checked` follows the click. The script that changes the visual state has to change the ARIA state with it, or assistive technology announces something stale.

A property describes the element more lastingly: its label, what it controls, what describes it, whether it is a live region. Properties are usually set once in the markup.

The distinction is descriptive — both are attributes, both are read the same way — but it points at the most common ARIA failure: a state written once in the HTML and never updated.

The first rule is to need fewer of them

The W3C guidance on using ARIA starts with one rule: when a native HTML element or attribute already has the semantics and behaviour needed, use it instead of adding ARIA to something else. A `<button>` needs no `role` and no `aria-pressed` to be a button.

ARIA changes what assistive technology is told, not how the element behaves. A `div` with `role="button"` is announced as a button and still does nothing with the keyboard until script makes it.

Several attributes only make sense on particular roles — `aria-checked` on checkboxes and similar widgets, `aria-valuenow` on range widgets, `aria-sort` on column headers. Using them elsewhere is valid spelling and meaningless.

What a scan validates

`accessibility.aria_validity` compares every `aria-*` attribute in the served HTML with a list of known attribute names, and every `role` value with a list of known roles. A name that is not on the list is reported, as is an empty `aria-label`.

That list holds the 48 attributes above and five more from the ARIA 1.3 working draft — `aria-braillelabel`, `aria-brailleroledescription`, `aria-colindextext`, `aria-rowindextext` and `aria-description` — so those five are accepted rather than reported as typos, although they are not part of the ARIA 1.2 Recommendation.

`accessibility.aria_references` checks that the ids named by `aria-labelledby`, `aria-describedby` and `aria-controls` exist in the same document, and `accessibility.aria_hidden` flags focusable elements marked `aria-hidden="true"`.

The checks read the HTML the server returned. They do not check that an attribute is allowed on the element's role, that its value is of the right type, or that a state is updated when the interface changes.

Frequently asked questions

How many ARIA attributes are there?
WAI-ARIA 1.2 defines 48: 10 states and 38 properties. Two of them, aria-grabbed and aria-dropeffect, are deprecated. The ARIA 1.3 working draft adds a few more, such as aria-description.
What is the difference between aria-label and aria-labelledby?
aria-label holds the name as a string. aria-labelledby points at the id of one or more elements whose text becomes the name, and takes precedence when both are present. Both replace the name the element would otherwise get from its content.
Does a misspelled ARIA attribute cause an error?
No. Browsers ignore unknown attributes silently, so a misspelling such as aria-labeledby simply has no effect. That is why a check that compares attribute names with the specification is useful.

Sources

Related

VeriFixScan crawls a site and applies its checks to every page it reaches, keeping the evidence behind each finding. Scanning one website is free.

Scan a website