What is a <fieldset>tag?

 Posted by Pgayath on 9/18/2012 | Category: HTML 5 Interview questions | Views: 1770 | Points: 40
Answer:

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

Example:
<form>

<fieldset>
<legend>Employee Information:</legend>
Emp Name: <input type="text" /><br />
Email: <input type="text" /><br />
Date of Joining: <input type="text" />
</fieldset>
</form>


| Alert Moderator 

Comments or Responses

Login to post response