HTML Form Elements

Creating a Radio Button Field:-

Radio button is used to select an option from the given list.


<HEAD><TITLE>Use of Radio Button</TITLE></HEAD>



Select your Choice:<br/>

<input type=”radio” name=”group1″ value=”milk”>Milk<br/>

<input type=”radio” name=”group1″ value=”Butter” value=”Butter” checked>Butter<br/>

<input type=”radio” name=”group1″ value=”Cheese”>Cheese<br/>




Result :-

form element


Example of Fieldset and Legend  Elements in HTML Form Elements :-


.legend and Fieldset tag


Follow Us

Contact Us

Back to Top