Preselected Checkbox Example : checkbox « Form « HTML / CSS






Preselected Checkbox Example

 
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <title>Preselected Checkbox Example</title>
  </head>
  <body>
    <form method="get" action="checkboxes.html">
      <p>   
        <input type="checkbox" name="terms" id="terms"/>
        <label for="terms">I have read the terms and conditions.</label> 
      </p> 
      <p>   
        <input type="checkbox" name="offers" id="offers" checked="checked"/>
        <label for="offers">I agree that you can contact me regarding special offers in the future</label>
      </p>      
      <input type="submit"/>
    </form>
  </body>
</html>

   
  








Related examples in the same category

1.checkbox Demo
2.checkbox input
3.Set check box width
4.Set input check box background color and color
5.CheckBox float: left;
6.CheckBox margin: 0 0 0 17px;
7.CheckBox width: 13px;
8.CheckBox height: 13px;
9.Checkbox Example
10.Checkboxes