Wednesday, October 30, 2013

Filled Under:

How to add radio buttons in html form

Hey everyone,our topic for today is Radio Buttons.
We will learn how to add radiobuttons in a form,the process is the same as we used in adding checkboxes and textboxes so you will fine it very easy.
The purpose of using radio buttons is that if we want to give user an option to select one out of the all,for example in a registration form we give an option to the user about his/her gender.
Below is the code for using radio buttons.

<html>
<body>

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

</body>
</html>






0 comments:

Post a Comment