Searchbox is here: Alt plus 4

|Go to main content|

Accessibility information page

|
 

Navigation begins here

Home (1)|
Tutorial (U)| Formats (F)| Tags (G)| Tools (L)| Resources (R)| Questions? (Q)|  

Tags|

A b b r|

Accesskey|

Acronym|

Alt|

Caption|

Div|

Fieldset|

Headers|

Heading|

I D|

Label For|

Legend|

Long desc|

Meta|

No frames|

No script|

Scope|

Skip Links|

Summary|

T H|

T body|

T head|

Tab index|

Title|

Fieldset and Legend

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>

Browsers

Internet Explorer supports the use of Fieldset and Legend, enclosing content areas with a thin border (see this site's Comments Form as an example).

Adaptive Technology

Neither Fieldset nor Legend is supported by JAWS, Window-Eyes or Home Page Reader at this point, so their usefullness is limited.

 
   
Bobby WorldWide Approved 508

Secondary navigation begins here

| About this site (B) | Email (E) | Site Map (3) | Comments (9) |