Legend

End Tag: Required
Support Key: 2 | 3 | 3.2 | 4 | IE4B2 | M | N | O
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =
Main Index | Element Tree | Element Index | HTML Support History


What is it?
The LEGEND element assigns a caption to a FIELDSET grouping of form elements. Using a LEGEND is most useful when pages are rendered using non-visual formats. The ALIGN attribute of this element will allow horizontal and vertical alignment of LEGEND content with respect to the FIELDSET in visual browsers.

Note: Use of the LEGEND element is optional within a FIELDSET, and if used, must immediately follow the opening FIELDSET tag. If the LEGEND element uses the ACCESSKEY attribute, the form control within the parent FIELDSET with the lowest tabbing order receives the focus.

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE4B2 | M | N | O
%Events%
2 | 3 | 3.2 | 4 | IE4B2 | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O

Specific Attributes
Accesskey
2 | 3 | 3.2 | 4 | IE4 | M | N | O
Required? No
Description:
This is a method of giving access/focus to an active HTML element using a keyboard character. This is a common GUI paradigm also known as a "keyboard shortcut" or "keyboard accelerator" A single character is used as the value of this attribute. In addition, a platform-dependent key is usually used in combination with the ACCESSKEY character to access the functionality of the active field.
Values:
A single, case-insensitive alphanumeric character from a browser's character set.
Align
2 | 3 | 3.2 | 4 | IE4B2 | M | N | O
Required? No
Description:
Indicates the source URL of the quotation. No rendering directions are given for this attribute.
Values:
Top | Bottom | Left | Right - Basic alignment values indicated in HTML 4.0
Center - Extra Internet Explorer 4.0 value for horizontal alignment of content at the top of the LEGEND
Example
<fieldset>
<legend ACCESSKEY=G TABINDEX=1>Gender</legend>
    <label ACCESSKEY=M><input TYPE=RADIO NAME=Gender VALUE=Male>Male</label> <br>
    <label ACCESSKEY=F><input TYPE=RADIO NAME=Gender VALUE=Female>Female</label>
</fieldset>
Parent Model
<fieldset>
Content Model
%In-line Content%
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...