html form input checkbox code example
Example 1: input checkbox
<div>
<input type="checkbox" id="scales" name="scales"
checked>
<label for="scales">Scales</label>
</div>
<div>
<input type="checkbox" id="horns" name="horns">
<label for="horns">Horns</label>
</div>
Example 2: checkbox value
<input type="checkbox" name="vehicle1" value="Bike">
The checkbox value is 'Bike'.