<form> tags are used to create HTML forms for user input.
A form can contain input elements such as text fields, checkboxes, radio boxes, submit buttons, and so on.
Forms can also contain menus, textarea, fieldset, legend, and label elements.
Forms are used to transfer data to the server.
Use of radio buttons:
<HTML><Body><form>Male:<inputtype= "Radio"checked= "Checked"name= "Sex"value= "Male" /><BR/>female:<inputtype= "Radio"name= "Sex"value= "female" /></form><P>When a user taps a radio button, the button becomes selected and all other buttons become unchecked.</P></Body></HTML>
View Code
When a user taps a radio button, the button becomes selected and all other buttons become unchecked.
About the use of label for:
<HTML><Body><P>Click on one of the text markers to trigger the associated control:</P><form><label for= "Male">Male</label><inputtype= "Radio"name= "Sex"ID= "Male" /><BR/><label for= "female">Female</label><inputtype= "Radio"name= "Sex"ID= "female" /></form></Body></HTML>
View Code
Click on one of the text markers to trigger the associated control:
Html--form