Share on Google+Share on Google+

Radio buttons in html

Advertisement
Here is an example of radio button in html.In this example we have display two radio button Male and Female.

Radio buttons in html

Here is an example of radio button in html.In this example we have display two radio button Male and Female. The user select only one of a limited number of choice. We have used table form in the example and background color method is bgcolor="#00FFFF" set for background color.

Example

radioButton.html

<html>
<head><title>Radio button in HTML</title></head>
<body>
<form>
<table width="15%" bgcolor="#00FFFF" align="center">

<tr>
<td colspan=2><center><font size=4><b>radio buttons in html</b></font></center></td>
</tr>
<tr>
<td>Male</td>
<td><input type="radio" name="sex" value="male"></td>
</tr>
<tr>
<td>Female</td>
<td><input type="radio" name="sex" value="male"></td>
</tr>
</table>
</form> 
</html>

Download Source Code

Advertisements

Advertisement

Posted on: June 4, 2013 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Radio buttons in html  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0