🖼️Radio Buttons
Also known as Radio Group, Radio Button, Option Buttons
A set of round options where only one can be picked.
Think of it like
It is like the station buttons on an old car radio. Push one, and the last one pops out.
Example
A checkout shows Standard, Express and Next day as radio buttons. Leo sees all three prices and picks one.
Why it matters
You see each choice at once. So it is easy to weigh them up.
Definition
Example code
html
<fieldset>
<legend>Delivery</legend>
<label><input type="radio" name="ship" checked> Standard</label>
<label><input type="radio" name="ship"> Express</label>
</fieldset>Try it
Picking one puts the last one back. That is what makes it a group.
Three choices, all visible, one answer. Under six, this beats a box that opens.
Common mistake
Key takeaways
- 1Exactly one. Picking one clears the rest.
- 2All visible. Easy to compare.
- 3A few choices. About two to six.