HTML Form: Radio buttons

This entry is part 9 of 10 in the series HTML Form

At times, you only want users to make one selection.  This can be done by using radio buttons.

When you select a radio button, all the other buttons in the group are cleared.

<!DOCTYPE html>
<html>
<head lang='en'>
    <meta charset='UTF-8'>
    <title>Codecrawl.com-Form</title>

</head>
<body>

<p>Where would you like to go next?</p>

<form method='post'>
    <input type='radio' name='country' value='england' checked='checked'>England<br>
    <input type='radio' name='country' value='brazil'>Brazil<br>
    <input type='radio' name='country' value='malaysia'>Malaysia<br>

</form>

</body>
</html>

 

 

Series Navigation<< HTML Form: Multiple selections using checkboxes
HTML Form: Menu list >>