Accessibility · Middle · Question 22 of 75

When is aria-activedescendant used instead of roving tabindex?

Show the answer

Correct answer: When DOM focus must stay on one element, like a combobox input

Explanation

The input keeps focus so the user can type, and the attribute points to the highlighted option. You also have to scroll and style that option yourself.

Further reading

Problem with a question

Accessibility · Middle · question 22

Test yourself

Take the Accessibility · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz