Sunday 22 September 2013

How to Create A Radio Button

The example demonstrate how to create radio buttons on an HTML form. When a user clicks a radio button, that button becomes selected, and all other buttons in the same group become deselected.

<html>
<body>
<form action="">
Male:
<input type="radio" checked="checked"
name="Gender" value="male">
<br>
Female:
<input type="radio"
name="Gender" value="female">
</form>
</body>
</html>

No comments:

Post a Comment