Aria 2 Flashcards

1
Q

What ARIA role should be used for a button that is not a <button> element?</button>

A

role=”button” with tabindex=”0” for keyboard support

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

What ARIA role is used for a collapsible accordion panel?

A

role=”region” with aria-labelledby to associate the heading

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

Which ARIA role should be used for a search bar?

A

role=”search”

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

Which ARIA role should be used for a modal popup?

A

role=”dialog” with aria-modal=”true”

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

What ARIA role is used for an interactive tab button?

A

role=”tab”

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

Which ARIA role should be used for a group of related tabs?

A

role=”tablist”

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

What ARIA role should be used for a tooltip that provides extra information?

A

role=”tooltip”

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

Which ARIA role should be used for a progress indicator?

A

role=”progressbar”

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

Which ARIA role should be used for a main navigation menu?

A

role=”navigation”

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

Which ARIA role should be used for a list of selectable items?

A

role=”listbox”

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

What ARIA role should be used for a notification banner?

A

role=”alert”

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

Which ARIA attribute is used to indicate if an element is disabled?

A

aria-disabled=”true”

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

What ARIA attribute should be used to show if an element is checked?

A

aria-checked=”true” or false

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

Which ARIA attribute is used to indicate whether an element is currently expanded or collapsed?

A

aria-expanded=”true” or false”

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

What does aria-hidden=”true” do?

A

It hides an element from screen readers while keeping it visible on the page

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

Which ARIA attribute associates an element with a visible label?

A

aria-labelledby

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

What does aria-describedby do?

A

It provides additional information about an element by referencing another element’s ID

18
Q

Which ARIA attribute should be used for an element that controls another element’s visibility?

A

aria-controls=”id”

19
Q

What does aria-selected=”true” indicate?

A

It marks the currently selected item in a listbox

20
Q

Which ARIA attribute should be used for a toggle switch to show its on/off state?

A

aria-pressed=”true” or false”

21
Q

Which ARIA attribute should be used to indicate a required form field?

A

aria-required=”true”

22
Q

What does aria-invalid=”true” do?

A

It marks a form field as invalid when an error occurs

23
Q

What is an ARIA live region?

A

An area of a webpage that dynamically updates and announces changes to screen readers

24
Q

What does aria-live=”polite” do?

A

It announces changes only when the user is idle

25
Q

What does aria-live=”assertive” do?

A

It announces updates immediately

26
Q

Which ARIA live region setting should be used for error messages?

A

aria-live=”assertive” so the message is read immediately

27
Q

Which ARIA live region setting should be used for chat notifications?

A

aria-live=”polite” to avoid disrupting the user

28
Q

What does aria-relevant=”additions” do?

A

It tells the screen reader to announce new content that is added to the live region

29
Q

What does aria-relevant=”removals” do?

A

It announces when content is removed from a live region

30
Q

What does aria-relevant=”text” do?

A

It announces changes to text inside the live region

31
Q

What is the default aria-live value for most elements?

A

aria-live=”off” meaning no announcements occur

32
Q

Which ARIA property should be used to identify a dynamic status update?

A

role=”status” with aria-live=”polite”

33
Q

How do role=”alert” and aria-live=”assertive” work together?

A

role=”alert” automatically sets aria-live=”assertive”

34
Q

How do role=”button” and aria-pressed=”true” work together?

A

role=”button” makes the element a button

35
Q

How do role=”checkbox” and aria-checked=”true” work together?

A

role=”checkbox” defines the element

36
Q

How do aria-labelledby and aria-describedby work together?

A

aria-labelledby provides a label for an element

37
Q

How do aria-live=”polite” and aria-relevant=”additions” work together?

A

They ensure that only newly added content in the live region is announced when the user is idle

38
Q

How do aria-expanded and aria-controls work together?

A

aria-expanded shows whether an element is open

39
Q

How do role=”progressbar” and aria-valuenow=”50” work together?

A

role=”progressbar” defines a progress indicator

40
Q

How do role=”tab” and aria-selected=”true” work together?

A

role=”tab” defines a tab

41
Q

How do role=”dialog” and aria-modal=”true” work together?

A

role=”dialog” identifies a modal