HTML Form Elements

Creating a Radio Button Field:-

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

<HTML>

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

<BODY>

<FORM>

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/>

</FORM>

</BODY>

</HTML>

Result :-

form element

 

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

 

.legend and Fieldset tag

 




Follow Us

Contact Us

tutorialworldin@yahoo.com

Back to Top