A set of checkboxes
What if we wanted to allow the user to select multiple options at once? An input with a type="checkbox" can be used for this. This type of input is similar to the radio buttons in that each answer option still has its own input and label elements, and all answer options should have the same name attribute.
HTML
<p>Choose your ice cream toppings:</p>
<input id="caramel" name="topping" type="checkbox" value="caramel">
<label for="caramel">Caramel</label>
<br>
<input id="sprinkles" name="topping" type="checkbox" value="sprinkles">
<label for="sprinkles">Sprinkles</label>
<br>
<input id="strawberries" name="topping" type="checkbox" value="strawberries">
<label for="strawberries">Strawberries</label>
<br>
<input id="chocolate" name="topping" type="checkbox" value="chocolate">
<label for="chocolate">Chocolate</label>