Tag Description
<input type="checkbox">
<input type="radio">
The <input type="radio"/> tag defines a radio button which allows the user to select only one of a limited number of choices.

The <input type="checkbox"/> tag defines a checkbox which lets users select one or more options of a limited number of choices.

Examples:

Type HTML Code Display
<input type="checkbox">

<form action="somepage.asp">
    <p>
    <input type="checkbox" 
           name="vehicle" value="Bike" /> 
           I have a bike
   <br />
   <input type="checkbox" 
          name="vehicle" value="Car" 
          checked="checked" /> 
          I have a car 
   <br />
   </p>
</form>
                

I have a bike
I have a car

<input type="checkbox">

<form action="somepage.asp">
    <p>
    <input type="checkbox" 
           name="vehicle" value="Bike" 
           disabled="disabled" /> 
            I have a bike
    <br />
    <input type="checkbox" name="vehicle" 
           value="Car" checked="checked" 
           disabled="disabled" /> 
           I have a car 
    <br />
    </p>
</form>
                

I have a bike
I have a car

<input type="radio">

<form action="somepage.asp">
    <p>
    <input type="radio" name="vehicle" 
           value="Bike" /> 
           I have a bike
    <br />
    <input type="radio" name="vehicle" 
            value="Car" checked="checked" /> 
            I have a car 
    <br />
    </p>
</form>                 
                

I have a bike
I have a car

<input type="radio">

<form action="somepage.asp">
    <p>
    <input type="radio" name="vehicle" 
           value="Bike" disabled="disabled" /> 
           I have a bike
    <br />
    <input type="radio" name="vehicle" 
           value="Car" checked="checked" 
           disabled="disabled" /> 
           I have a car 
    <br />
    </p>
</form>
                

I have a bike
I have a car