<LEGEND>...</LEGEND>
Description
Give the caption for a group of related controls, created with the
FIELDSET element.
This element is only valid inside the FIELDSET element.
DTD
<!ELEMENT LEGEND - - (%inline;)* -- fieldset legend -->
<!ENTITY % LAlign "(top|bottom|left|right)">
<!ATTLIST LEGEND
%attrs; -- %coreattrs, %i18n, %events --
accesskey %Character; #IMPLIED -- accessibility key character --
>
from the
HTML 4.0 DTD,
"Copyright ©
W3C,
(MIT,
INRIA,
Keio).
All Rights Reserved."
Attributes
Core attributes:
class
id
style
title
Internationalization attributes:
dir
lang
Events:
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
ACCESSKEY
Description of the accesskey attribute
ALIGN
This attribute determines where the legend will be placed.
Value |
Description |
bottom |
The legend will be at the bottom of the fieldset.
This value is not supported by IE 4.0.
|
left |
The legend will be at the left side of the fieldset.
|
right |
The legend will be at the right side of the fieldset.
|
top |
The legend will be at the top of the fieldset.
|
Examples
 |
Place your order :<BR>
<FORM>
<TABLE>
<TR valign="top"><TD colspan="2">
<FIELDSET><LEGEND>Address information</LEGEND>
Name <INPUT type="text" name="name"><BR>
Address <INPUT type="text" name="address"><BR>
City <INPUT type="text" name="city"><BR>
Country <INPUT type="text" name="country">
</FIELDSET>
</TD>
<TD>
<FIELDSET><LEGEND>What do you want today?</LEGEND>
<INPUT type="checkbox" name="Pizza">Pizza<BR>
<INPUT type="checkbox" name="Hamburger">Hamburger<BR>
<INPUT type="checkbox" name="Sandwich">Sandwich<BR>
<INPUT type="checkbox" name="Hot dog">Hot dog
<P>
Amount <INPUT type="text" name="amount">
</FIELDSET>
</TD></TR>
</TABLE>
</FORM>
|
|
 |
Place your order :
|