HTML FieldSet Tag

The most common HTML tag I use is div. The div tag is a web designer’s best friend. It is the Swiss army knife of tags. That said my favorite HTML tag is the fieldset. The fieldset tag is similar to the div in that it is a container for other design elements. The key difference between a div and a fieldset is that you can add a text legend to the fieldset, which appears inside the top right of border of the fieldset!!!

[source:html]
<FIELDSET>
<LEGEND>Header for Grouping</LEGEND>
CONTENT
</FIELDSET>
[/source]

You might be asking, what are fieldset good for? The fieldset tag helps to visually group elements, such as a login form or a group of links. If you want an example of the fieldset tag in use look below to the Related Posts table below…

Technorati Tags: , , , , ,