Accessibility · Junior · Question 62 of 75
What does <details> with <summary> give you?
- 1A modal window with a focus trap already included
- 2A tooltip that appears when an element is hovered
- 3A disclosure widget with keyboard support built in
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.