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.
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">
On execution, the code is displayed as
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: December 3, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles