Aria 1 Flashcards

1
Q

What does ARIA stand for?

A

Web Accessibility Initiative – Accessible Rich Internet Applications

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

What is the primary purpose of ARIA?

A

To improve accessibility for complex and dynamic web content that standard HTML cannot fully support

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

What are ARIA roles used for?

A

They define the purpose of an element to assistive technologies like screen readers

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

What ARIA role should be used for a modal dialog?

A

role=”dialog”

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

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

A

aria-expanded

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

What ARIA attribute should be used to provide a description for an element?

A

aria-describedby

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

How does aria-live=”assertive” affect screen readers?

A

It announces updates immediately

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

What is the best ARIA alternative to a <button> when using a <div>?</button>

A

role=”button” along with tabindex=”0” and aria-pressed if toggleable

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

What ARIA attribute hides content from screen readers?

A

aria-hidden=”true”

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

When should ARIA be avoided?

A

When native HTML elements already provide the required accessibility

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

What does aria-labelledby do?

A

It associates an element with another element that serves as its label

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

How can you ensure ARIA attributes update dynamically?

A

By using JavaScript to modify ARIA states and properties in response to user interactions

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

What ARIA attribute should be used for a notification area?

A

aria-live=”polite”

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

What is aria-haspopup used for?

A

It indicates that an element opens a menu

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

Which ARIA role should be used for a collapsible navigation section?

A

role=”navigation” with aria-expanded

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

What does aria-controls do?

A

It specifies the ID of the element being controlled by another element

17
Q

What ARIA role should be used for a tab panel?

A

role=”tabpanel”

18
Q

What does aria-current=”page” indicate?

A

It marks the current page or section in navigation

19
Q

Why should native HTML elements be preferred over ARIA?

A

Because built-in HTML elements provide better browser and assistive technology support