Accessibility · Junior · Question 27 of 75
What are <fieldset> and <legend> for?
- 1Validating all fields of a form at the same time
- 2Grouping related fields under a shared label
- 3Drawing decorative borders around form elements
Show the answer
Correct answer: Grouping related fields under a shared label
Explanation
For a group of radio buttons, the legend gives the question ("Delivery method") and each label gives an option. Screen readers announce both.