Grouped Radio Buttons

Groups of radio buttons are used as possible answers to a certain question, and as such they are always related to each other. Hence they are always grouped, while the <fieldset>‘s <legend> contains the question and each control’s <label> contains an answer. Working Example Gender Male Female Explanation This is also reflected by the fact that each radio button’s name attribute is…

Grouped Checkboxes

Grouping form controls in a meaningful way can make them much easier to handle for everyone. While most controls can be grouped, some must be grouped. The fieldset/legend structure is available for exactly that – it can even be nested. And if its visual limitations are a problem, ARIA can be of help. Groups of…

Nested Fieldset/Legend Structures

Grouping form controls in a meaningful way can make them much easier to handle for everyone. While most controls can be grouped, some must be grouped. The fieldset/legend structure is available for exactly that – it can even be nested. And if its visual limitations are a problem, ARIA can be of help. Nesting <fieldset>/<legend> structures are…