Input Type: Radio and Submit

The radio and the submit input types have already been covered, so onward to the "checkbox" type.


Input Type: Checkbox

This line defines a checkbox, which lets a user select ZERO or MORE options of a limited number of choices.

<input type="checkbox">
HTML file: Displayed by browser:
<form>
<input type="checkbox" name="vehicle1" value="Bike"> I have a bike
<br />
<input type="checkbox" name="vehicle2" value="Car"> I have a car
</form>
I have a bike
I have a car

Back button Table of Contents Next button