Horje

How to add An HTML form with a pre-selected checkbox

The input checked attribute.
index.html
Example: HTML
 <form action="/action_page.php">
  <input type="checkbox" name="vehicle" value="Bike"> I have a bike<br>
  <input type="checkbox" name="vehicle" value="Car" checked> I have a car<br>
  <input type="submit" value="Submit">
</form> 

Output should be:

How to add An HTML form with a pre-selected checkbox




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin