A radio group is a set of HTML radio buttons for choosing exactly one option. Each button appears as a circle; selecting one clears the previous selection. section 8.3.6
Use a radio group when:
- Visitors must choose one of three or four options, such as a day or shirt size. section 8.3.6
- You want one option selected initially; specify that choice in the form prompt. section 8.3.6
- You need to identify the choices with a legend caption, such as “Choose a t-shirt size.” section 8.3.6
- You have five or more options; use a selection list instead. section 8.3.6 section 8.7
T-shirt size
A form can offer Small, Medium, Large, and Extra Large, with Medium selected when the form first opens. Ask for a legend caption such as “Choose a t-shirt size.” section 8.3.6
A group of radio buttons with the following options: "Small", "Medium", "Large", and "Extra Large". Include a legend element with the caption "Choose a t-shirt size".
Inspect a prompt that requests the four shirt-size options, an initially selected Medium choice, and a descriptive legend. section 8.3.6
