Radio button

The <input> with type="radio" allows you to select one of several values to submit. For this add several elements with same name but with different values.
<input type="radio" name="wizard" 
value="Gendalf" checked> Gendalf<br>

<input type="radio" name="wizard" 
value="Saruman" >Saruman<br>

<input type="radio" name="wizard" 
value="Sauron"> Sauroncode>
Gendalf
Saruman
Sauron

attributes

attribute description
id, name Name of element.
checked A boolean value that indicates the default selected button.
value Value for submission.