How to Use Fieldset and Legend ?

Ebooks - Tips, How to, Others — By on March 1, 2009 at 7:34 am

The Fieldset element, in conjunction with Legend, has been developed to help users organize form content, as in the case of a form where contact information is clustered. A combination of these tags and Cascading Style Sheet attributes can produce a table-free data form. Fieldset and Legend are not currently supported by adaptive technology.

Note: Fieldset encloses content between the <TD> and </TD> tags, so it does not work for forms defined by multiple rows and columns.

Fieldset and Legend are used below in concert with I D below. See the Forms page for more detail.

Code Example:

<tr>
<td><fieldset>
<legend>Contact Information
</legend>

<p>
<label for=”FirstName”>First name:</label>
<input type=”text” name=”fn” id=”FirstName”></input></label>
</p>
<p>
<label for=”SecondName”>Second name:</label>
<input type=”text” name=”sn” id=”SecondName”></input>
</p>
</fieldset></td>
</tr>

Tokokoo 300x250
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Random Articles

0 Comments

You can be the first one to leave a comment.

Leave a Comment


Tags: , , , ,