The radio buttons in HTML come in handy when the user should select only one option in a form.

The HTML looks like this:

<input type="radio" id="mac" name="computer" value="mac">
<label for="mac">Mac</label>

<input type="radio" name="computer" value="pc" id="pc">
<label for="pc">PC</label>

<input type="radio" name="computer" value="hackintosh" id="hackintosh">
<label for="hackintosh">Hackintosh</label>

This element was called radio buttons because of the behaviour of the old car radios, where you could keep pushed only one button at the same time.