<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
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.
@compact
- Specifies whether the vertical spacing between list items is
tightened. The following values are valid:
yes, no, and
-dita-use-conref-target. Some DITA
processors or output formats might not support the
@compact
attribute.
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>