Home Html Radio Buttons in HTML
Questions:Ask|Latest



Radio Buttons in HTML
Posted on: December 3, 2008 By Deepak Kumar
The Radio Button in HTML are type of input form, which allows a user to select any one option from the alternative options. To achieve this, we must specify the name of radio button properly.

Radio Buttons in HTML

     

The Radio Button in HTML are type of input form, which allows a user to select any one option from the alternative options. To achieve this, we must specify the name of radio button properly. 

Understand with Example

The Tutorial illustrates an example from Radio Buttons in HTML.In this Tutorial, the code explain to create a Radio Buttons. The code enables a user to select one radio button at a time among alternative buttons.

<input type> :The <input> type  specify the component type is  radio button.

<value> :The <value> specify  the output value of input element in  html page, when it is clicked. The  Output result is sent to the specified form's action URL.

The code is saved with .html extension. Paste the path of the .html code into url and run the browser.

<form action="">

I have a bicycle:
<input type="radio" name="vehicle" value="bicycle">

I have a bike:
<input type="radio" name="vehicle" value="bike">

I have a car:
<input type="radio" name="vehicle" value="car">

</form>

On execution, the code is displayed as

Download


Recommend the tutorial

Ask Questions?    Discuss: Radio Buttons in HTML   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
Sanju
March 16, 2012
Radiobutton code

Hello, i want to write a code in which if a click a radio button then it should automatically send me an email to a specific address which i already inputted.. Is it possible??
clark
April 16, 2012
not working

Not What I was looking for. I am looking for a function that enables me to search websites by choosing the radio button. E.g text field [_____________] radio button 1 - google radio button 2 - yahoo.com {Search button}
dharmendra
June 8, 2012
about radio

radio is best way to express love,mirchi is best way to convince all listener