<input type="radio"> defines a radio button.
User can select only one option from given choices.
Example :
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.
3 Comments
Good content keeep posting these type of content....... It is very helpful for those who want to learn html in this lockdown... Keep posting
ReplyDeleteGood Akhil Sir
ReplyDeletetq sir/mam
Delete