checked value html code example
Example 1: html checkbox default checked
<!-- Add checked tag -->
<input type="checkbox" name="vehicle3" value="Boat" checked>
Example 2: commande checkbox html
<!doctype html>
<html>
<body>
<input type="checkbox">
<input type="radio">
</body>
</html>
Example 3: checkbox value
<input type="checkbox" name="vehicle1" value="Bike">
The checkbox value is 'Bike'.