Accessibility · Middle · Question 25 of 75
In an accordion, what should the header contain?
- 1A button inside a heading, with
aria-expanded - 2A link with
href="#"and a click handler - 3A
divwithrole="heading"andonclick
Show the answer
Correct answer: A button inside a heading, with aria-expanded
Explanation
The heading keeps the outline and the button handles interaction. aria-controls can link it to the panel.