Working with radio buttons

To create a radio button, use the following HTML tag:

<input type="radio" name="name" value="value" />

where name identifies the field containing the radio button and value attribute specifies the value sent to the CGI script.

To make a particular radio button a default option, use the attribute checked="checked":

<input type="radio" name="name" value="value" checked="checked" />

The radio buttons are used whenever the input options are mutually excluding.

LayoutHTML tags
What is your status?
Freshman
Sophomore
Junior
Undergraduate
Graduate
Post-graduate
<form>
What is your status? <br />
<input type="radio" name="sRadio" 
  value="freshman" /> Freshman <br />
<input type="radio" name="sRadio" 
  value="sophomore" checked="checked"> Sophomore <br />
<input type="radio" name="sRadio" 
  value="junior" /> Junior <br />
<input type="radio" name="sRadio" 
  value="undergraduate" /> Undergraduate <br />
<input type="radio" name="sRadio" 
  value="graduate" /> Graduate <br />
<input type="radio" name="sRadio" 
  value="Post" /> Post-graduate
</form>

Try how it works: