HTML and CSS Reference
The specification defines bottom and top , as well. Microsoft also defines the use of the
value center .
<form action="#" method="get">
<legend align="top"> User Information </legend>
<label> First Name:
<input type="text" id="firstname" size="20">
<label> Last Name:
<input type="text" id="lastname" size="20">
HTML 4, 4.01, 5
XHTML 1.0, 1.1
Firefox 1+, Internet Explorer 4+,
Netscape 6+, Opera 4+, Safari 1+
• 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> .
dir="ltr | rtl"
id="unique alphanumeric identifier"
type="circle | disc | square | a | A | i | I | 1" (transitional only)
value="number"> (transitional only)