Practice ยท 2 of 4
Checkboxes or Radios?
Choice controls have rules. Build both kinds:
- A group of three radio inputs named size (values s, m, l) โ radios share a name, so only one can be picked.
- A single checkbox named gift (value yes) โ independent on/off.
- A label for each control, wired with for/id.
Rules:
- All three radios share name="size".
- The checkbox uses name="gift".
- Every control has a connected label.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Forms & Input โ Practice