ARIA Roles & Labels Flashcards

(30 cards)

1
Q

aria-label

A

aria-label

Defines a string label for an element, used by screen readers.

✅ Use when a visible label is not present but a name is needed for accessibility.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

aria-labelledby

A

aria-labelledby

Refers to the ID of another element that labels this element.

✅ Preferred over aria-label when there’s already visible text labelling the element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

aria-describedby

A

aria-describedby

Refers to the ID of element(s) that provide descriptive information (e.g., instructions or hints).

✅ Use to provide extended help text or instructions beyond the label.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

aria-hidden

A

aria-hidden

Indicates whether the element is hidden from assistive technology.

✅ Use to hide decorative or redundant content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

aria-live

A

aria-live

Tells screen readers that content updates dynamically and should be announced.

✅ Use in live regions (e.g., alerts, chat updates).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

aria-atomic

A

aria-atomic

Instructs screen readers whether to announce only changed content or entire region.

✅ Use with aria-live for clarity in updates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

aria-relevant

A

aria-relevant

Specifies which types of changes should be announced in a live region (additions, removals, etc.).

✅ Combine with aria-live.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

aria-role

A

aria-role

Not an attribute itself. The correct term is just role.

Assigns a role (e.g., button, dialog) to define purpose and behaviour.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

aria-checked

A

aria-checked

Indicates the checked state of checkboxes, switches, or menu items.

✅ Values: true, false, or mixed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

aria-pressed

A

aria-pressed

Indicates the pressed state of toggle buttons.

✅ Values: true, false, or mixed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

aria-expanded

A

aria-expanded

Indicates whether a collapsible region or widget is expanded or collapsed.

✅ Use on elements that control visibility of other regions (e.g., accordions, dropdowns).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

aria-controls

A

aria-controls

Points to the ID of elements being controlled by this element.

✅ Use with buttons or tabs that affect another region.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

aria-haspopup

A

aria-haspopup

Indicates that the element has a popup, like a menu, listbox, dialog, or tree.

✅ Helps screen readers expect a pop-up interaction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

aria-current

A

aria-current

Indicates the currently active item within a set (e.g., pagination, tabs).

✅ Values: page, step, true, false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

aria-disabled

A

aria-disabled

Indicates that the element is disabled, even if not visually disabled using HTML disabled.

✅ Allows styling and behaviour to reflect this state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

aria-required

A

aria-required

Indicates that input is required in a form field.

✅ Use when HTML5 required is not sufficient or not applicable.

17
Q

aria-invalid

A

aria-invalid

Indicates the validation state of a form field.

✅ Values: false, true, grammar, spelling.

18
Q

aria-valuemax

A

aria-valuemax

Specifies the maximum allowed value for a widget like a slider or spinbutton.

✅ Use with aria-valuenow and aria-valuemin.

19
Q

aria-valuemin

A

aria-valuemin

Specifies the minimum allowed value.

✅ Always paired with aria-valuenow and aria-valuemax.

20
Q

aria-valuenow

A

aria-valuenow

Specifies the current value of a range widget.

✅ Required when the user can adjust values.

21
Q

aria-valuetext

A

aria-valuetext

Provides a human-readable representation of aria-valuenow.

✅ Useful when the numeric value needs clarification (e.g., volume levels).

22
Q

aria-busy

A

aria-busy

Indicates the element is being updated and screen readers should wait before reading it.

✅ Use on widgets that load new data dynamically.

23
Q

aria-modal

A

aria-modal

Indicates that an element is a modal dialog and the rest of the app is inaccessible.

✅ Use with role=”dialog” or role=”alertdialog”.

24
Q

aria-multiselectable

A

aria-multiselectable

Allows multiple items to be selected in widgets like listboxes.

✅ Used on parent container, not items themselves.

25
aria-multiline
**aria-multiline** Indicates whether a **textbox** supports multiple lines. ✅ Used on elements with **role="textbox"**.
26
aria-orientation
**aria-orientation** Indicates whether a **widget** is horizontal or vertical. ✅ Useful for sliders, tabs, toolbars.
27
aria-readonly
**aria-readonly** Indicates that an **input** is read-only but not disabled. ✅ Used for fields that should not be changed by users.
28
aria-roledescription
**aria-roledescription** Provides a **custom description** for the **role** of an element. ✅ Helps clarify purpose beyond the native role (use sparingly).
29
aria-selected
**aria-selected** Indicates if an element is **selected in a group** (e.g., tabs or list items). ✅ Applies to options in listboxes, tabs, etc.
30
aria-level
**aria-level** Indicates the **heading level** in a tree or document outline. ✅ Used when headings are not native

elements.