Grouping with <fieldset> & <legend>

The neighbourhood head’s games sign-up grouped with fieldset and legend: the browser answers which controls a fieldset makes :disabled (the ones in its legend…

Why it matters

Grouped radios and checkboxes with no group name leave screen reader users guessing the question. And a form section switched on later ("Antar ke rumah") is tidiest off with one disabled on its fieldset: no loop in JS, new fields follow on their own, and disabled controls cannot be focused and are not sent.

The key idea

legend names the group; disabled on a fieldset spreads to what it holds

Common mistakes

Try it in this playground