Home Html Radio Buttons in HTML



Radio Buttons in HTML
Posted on: December 3, 2008 at 12:00 AM
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

Related Tags for Radio Buttons in HTML:
htmlcperlormselectforminputbuttoniousertypenativenamethisradalternativeifforoptionsienatradiotooptionciwsealterputusepefrominmlrmmadspecallaltmeprowhichsspatanyhtmisllivpropererlerlarropettssthstchiatiproppronomonp


More Tutorials from this section

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

Post your Comment


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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.