<input type="radio"> defines a radio button.

User can select only one option from given choices.


Id - Its input element nothing to do, it only contains data of the input element.



Name -  Name attribute used however in HTTP request sent by the browser. For radio button name attribute should be the same because then we can select only one value for one particular name.



Example :








     Radio button lets you select only one option. 





 previous page next page