Fieldset and legend tag in html to make form with example?
Fieldset and legend tag in html is used to design the forms in html
.- fieldset tag:
when we are designing any application or registration form, field set tag is used to make group of the forms.
- legend tag:
when we are designing any application or registration form, legend tag is used to give the name of group in form.
lets see example:
Lets starts practice:
<html>
<head>
<title>Fieldset and legend tag in html</title>
<body>
<form>
<fieldset>F.NAME:<input type="TEXT" name="f.name" ><br ><br >
L.NAME:<input type="TEXT" name="l.name"><br ><br>
Fa.NAME:<input type="NAME" name="fa.name" /><br ><br>
</fieldset>
<fieldset>
<legend>Contact detail</legend>
E.MAIL:<input type="TEXT" name="MAIL"><br ><br >
ADRESS:<input name="TEXT" type="TEXT">
</fieldset>
</form>
</body>
</html>