Fieldset Tag

by Vijay 2010-01-30 18:52:08

The <fieldset> tag is used to logically group together elements in a form.
It draws a box around the related form elements.


Example:

<fieldset>
<legend>User Profile:</legend>
Name: <input type="text" size="30" /><br />
Email: <input type="text" size="30" /><br />
Date of birth: <input type="text" size="10" />
</fieldset>

The <legend> tag is used to give a lable/caption to the fieldset.
It works fine in both IE and firefox.

the above code will display form as,

User Profile:
Name:

Email:

Date of birth:


Tagged in:

1380
like
0
dislike
0
mail
flag

You must LOGIN to add comments