Version-//W3C//DTD XHTML 1.0 Transitional//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
class CDATA #IMPLIEDspace-separated list of classes
compact( compact )#IMPLIEDreduced interitem spacing
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
onclick CDATA #IMPLIEDa pointer button was clicked; script expression
ondblclick CDATA #IMPLIEDa pointer button was double clicked; script expression
onkeydown CDATA #IMPLIEDa key was pressed down; script expression
onkeypress CDATA #IMPLIEDa key was pressed and released; script expression
onkeyup CDATA #IMPLIEDa key was released; script expression
onmousedown CDATA #IMPLIEDa pointer button was pressed down; script expression
onmousemove CDATA #IMPLIEDa pointer was moved within; script expression
onmouseout CDATA #IMPLIEDa pointer was moved away; script expression
onmouseover CDATA #IMPLIEDa pointer was moved onto; script expression
onmouseup CDATA #IMPLIEDa pointer button was released; script expression
start CDATA #IMPLIEDone or more digits; starting sequence number
style CDATA #IMPLIEDassociated style info; style sheet data
title CDATA #IMPLIEDadvisory title; text used for titles
type CDATA #IMPLIEDnumbering style
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
Content( li )+
End tagRequired </ol>
Referenced in applet blockquote body button center dd del div fieldset form iframe ins li map noframes noscript object td th
Example
SourceAppearance
The Solar System
<ol type="A">
<li>Inner
<ol type="1">
<li>Mercury</li>
<li>Venus</li>
<li>Earth</li>
<li>Mars</li></ol></li>
<li>Outer
<ol type="1" start="5">
<li>Jupiter</li>
<li>Saturn</li>
<li>Uranus</li>
<li>Neptune</li>
<li>Pluto</li>
<li>Kuiper Belt</li></ol></li></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
search Search · star Market
2023-06-19 · John December · Terms © johndecember.com