This Blog is for HTML Tutorials.

HTML Logo

HTML FORM Create Radio Button

<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

Post a Comment

3 Comments

  1. Good content keeep posting these type of content....... It is very helpful for those who want to learn html in this lockdown... Keep posting

    ReplyDelete