9.3 Input Radio

Setting the value of the attribute type to radio allows visitors to select one or more options using "radio buttons" from a limited number of choices. For example:

<form>
<input type="radio" name="sex" value="male"> Male
<br />
<input type="radio" name="sex" value="female"> Female
</form> 

This would look like this in a browser (try clicking the buttons):

Male
Female

Here we have also used the value attribute. This attribute would provide the information as to which choice was taken by a visitor, and for example could be passed upon processing of the form to an email address.