<ol>
An ordered list is a list of items that are sorted by sequence or order of importance.
Rendering expectation
List items are typically indicated by numbers or alphabetical characters.
Content model
Contained by
<abstract>
, <body>
, <bodydiv>
, <dd>
, <desc>
, <div>
, <draft-comment>
, <entry>
, <example>
, <fallback>
, <fig>
, <figgroup>
, <fn>
, <howtoavoid>
, <li>
, <linkinfo>
, <lq>
, <note>
, <p>
, <section>
, <stentry>
Contained by
Inheritance
- topic/ol
The <ol>
element is a base element type. It is defined in the topic module.
Attributes
The following attributes are available on this element: universal
attributes and @compact
.
The following attributes are available on this element: universal attributes and the attributes defined below.
Example
This section is non-normative.
The following code sample shows the use of an ordered list:
<p>Here is a list of the five longest-living people who were born in the 19th century:</p>
<ol>
<li>Jeanne Calment (1875-1997)</li>
<li>Sarah Knauss (1880-1999)</li>
<li>Marie-Louise Meilleur (1880-1998)</li>
<li>Emma Morano (1899-2017)</li>
<li>Misao Okawa (1898-2015)</li>
</ol>
<p>Note that systematic verification has only been practised in recent years and only
in certain parts of the world.</p>