VersionW3C//DTD HTML 3.2 Final//EN
ElementOL
Purposeordered list
DescriptionThis element defines an ordered list, a list of items whose ordering is important. Examples include instruction steps or items ranked by some quality (such as preference or winners of a race). Compare this with the unordered list ul.
Start tagRequired <OL>
Attributes
NameTypeDefaultComment
compact( compact )#IMPLIEDreduced interitem spacing
start NUMBER #IMPLIEDstarting sequence number
type CDATA #IMPLIEDconstrained to: [1|a|a|i|i] where 1 = arabic (1, 2, 3, ...); a = lower alpha (a, b, c, ...); A = upper alpha (A, B, C, ...); i = lower roman (i, ii, iii, ...); I = upper roman (I, II, III, ...); 1 = arabic numbers (1, 2, 3, ...); a = lower alpha (a, b, c, ...); A = upper alpha (A, B, C, ...); i = lower roman (i, ii, iii, ...); I = upper roman (I, II, III, ...)
Content( LI )+
End tagRequired </OL>
Referenced in BLOCKQUOTE BODY CENTER DD DIR DIV FORM LI MENU TD TH
Example
SourceAppearance
The Solar System
<OL type="A">
<LI>Inner
<OL type="1">
<LI>Mercury
<LI>Venus
<LI>Earth
<LI>Mars
</OL>
<LI>Outer
<OL type="1" start="5">
<LI>Jupiter
<LI>Saturn
<LI>Uranus
<LI>Neptune
<LI>Pluto
<LI>Kuiper Belt
</OL>
</OL>
The Solar System
  1. Inner
    1. Mercury
    2. Venus
    3. Earth
    4. Mars
  2. Outer
    1. Jupiter
    2. Saturn
    3. Uranus
    4. Neptune
    5. Pluto
    6. Kuiper Belt
Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.