'checked' defines whether a checkbox or radio button is selected or not : Form CheckBox « Form « HTML / CSS






'checked' defines whether a checkbox or radio button is selected or not

    
<HTML>
<head>
<Title>Example For checked</Title>
</head>
<BODY>
<form>
   <p>Purchase:
   <br>
   <input type="checkbox" value="checkbox" checked>CD
   <input type="checkbox" value="checkbox">DVD 
   </p>
   <p>Credit Card:</p>
   <input type="radio" value="radiobutton" checked>VISA
   <input type="radio" value="radiobutton">MASTERCARD
   <input type="radio" value="radiobutton">DISCOVER
   <input type="radio" value="radiobutton">AMERICAN EXPRESS
</form>
</BODY>
</HTML>  

    
      
      








Related examples in the same category

1.Check Box Example
2.Form with action script and checkbox
3.Form checkbox with name