HTML Radio Buttons
Use Of Radio Button In HTML
Radio Buttons are one of the easiest ways of information capture.
These are small round buttons, next to which is a text is placed and based on their preferences, site visitors will choose a radio button that is most suitable for them.
Difference Between Radio Button And Checkbox
A radio button is different from a checkbox in a such a way that when you select one button, all the others are automatically deselected. Compare with check box, which allows you to select any combination of options.
How To Create Radio Buttons In HTML
Here is the code to use a radio button in our webpage.
<html>
<body>
<input type="radio" name="Status" value="Single">
<input type="radio" name="Status" value="Married">
</body>
</html>
Relationship Status:
Single
Married
<html> <body> <input type="radio" name="Status" value="Single"> <input type="radio" name="Status" value="Married"> </body> </html>
