Accessibility · Junior · Question 27 of 75

What are <fieldset> and <legend> for?

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.

Further reading

Problem with a question

Accessibility · Junior · question 27

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