HTML Legend and Fieldset Tags

I never used the HTML <Legend> and <Fieldset> until recently when I had to create a GroupBox for the controls on a web page. These tags are really amazing; they create a groupbox with rounded corners with Legend on the top. Actually the ASP.NET Panel control has a GroupingText Property, if you specify this property; the panel renders a field set with GroupingText set as the Legend.


<Legend>HTML Group Box</Legend>

<!–Rest of the GroupBox code –>



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s