Fieldset Tag - HTML Views : 480
Tagged in : HTML
0 0
Send mail
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:


By Vijay, On - 2010-01-30



    Login to add Comments .