Accessibility · Junior · Question 62 of 75

What does <details> with <summary> give you?

Show the answer

Correct answer: A disclosure widget with keyboard support built in

Explanation

It opens and closes with Enter or Space, and its state is exposed to assistive tech, with no JavaScript. It's great for FAQ sections.

Further reading

Problem with a question

Accessibility · Junior · question 62

Test yourself

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

Take this quiz