HTML and CSS Reference
In-Depth Information
The specification defines bottom and top , as well. Microsoft also defines the use of the
value center .
Example
<form action="#" method="get">
<fieldset>
<legend align="top"> User Information </legend>
<div>
<label> First Name:
<input type="text" id="firstname" size="20">
</label><br>
<label> Last Name:
<input type="text" id="lastname" size="20">
</label><br>
</div>
</fieldset>
</form>
Compatibility
HTML 4, 4.01, 5
XHTML 1.0, 1.1
Firefox 1+, Internet Explorer 4+,
Netscape 6+, Opera 4+, Safari 1+
Notes
• Traditionally, a <legend> tag should occur only within a <fieldset> tag. There
should be only one legend per fieldset element.
• Under early drafts of the HTML5 specification, this element is also found in the
figure and details elements. This was later replaced by the dt element.
• Some versions of Microsoft documentation show a valign attribute for <legend>
positioning. However, the valign attribute does not appear to work consistently
and has since been dropped from the official documentation.
<li> (List Item)
This element is used to indicate a list item as contained in an ordered list ( <ol> ), unordered
list ( <ul> ), or older list styles such as <dir> and <menu> .
Standard Syntax
<li
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
style="style information"
title="advisory text"
type="circle | disc | square | a | A | i | I | 1" (transitional only)
value="number"> (transitional only)
</li>
Search WWH ::




Custom Search