HTML & CSS · Senior · Question 38 of 75

When are ARIA attributes needed, and when is it better to do without them?

Explanation

ARIA only changes how an element is described to assistive technologies; it adds no behavior: <div role="button"> doesn't get focus or Enter/Space activation. Incorrect ARIA is worse than none. For tabs, comboboxes and trees, which have no native equivalents, follow the APG patterns.

Further reading

Problem with a question

HTML & CSS · Senior · question 38

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz