Skip to content
Justice Tech School

Radio Buttons and Checkboxes

Radio buttons with the same name let you choose one option. Checkboxes allow several. Use label to make the text clickable.

Example
<label><input type="radio" name="size" value="s"> Small</label>
<label><input type="radio" name="size" value="l" checked> Large</label><br>
<label><input type="checkbox" name="extra" value="1"> Extra cheese</label>

Exercise

Group radios together.

<input type="radio" ="size">

Quiz Test

How do radios form a group?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.