show-notice
hide-notice

Friday 9 August 2013

HTML legend Tag


Introduction:

The HTML legend tag is used for labelling the fieldset element. By using the fieldset tag and the legend tag, you can make your forms much easier to understand for your users. The fieldset tag is used to group the form elements whilst the legend tag provides a label for the fieldset.

Example:
<html>
<head>
<title>HTML legend Tag</title>
</head>
<body>
<fieldset style="text-align:right;">
<legend><b>Address Details</b></legend>
Favorite Address <input type="text" /><br />
Least Favorite Address <input type="text" /><br />
Current Address <input type="text" /><br />
Your Next Address <input type="text" /><br />
</fieldset>
</body>
</html>

SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com