🖼️Checkbox
Also known as Check Box, Tick Box
A small box you tick. In a group, you can tick as many as you like.
Think of it like
It is like ticking items on a shopping list. Tick as many as you want.
Example
A pizza order lists toppings with checkboxes. Jack ticks cheese, olives and mushrooms.
Why it matters
It is the clearest way to pick several things from a short list.
Definition
Example code
html
<label><input type="checkbox" name="top" value="olives"> Olives</label>Try it
The order has nothing extra on it.
Tick two, then look at the order below. Nothing changed until you pressed Save.
Common mistake
Key takeaways
- 1Tick any number. Zero, one or all.
- 2Waits for Save. Nothing happens yet.
- 3Click the words too. A bigger target.