Key Concepts

Review core concepts you need to learn to master this subject

<input>: Checkbox Type

<input type="checkbox" name="breakfast" value="bacon">Bacon 🥓<br> <input type="checkbox" name="breakfast" value="eggs">Eggs 🍳<br> <input type="checkbox" name="breakfast" value="pancakes">Pancakes 🥞<br>

When using an HTML input element, the type="checkbox" attribute will render a single checkbox item. To create a group of checkboxes related to the same topic, they should all use the same name attribute. Since it’s a checkbox, multiple checkboxes can be selected for the same topic.

HTML Forms
Lesson 1 of 2

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo