5.3.22 ol : Numbered list.

The ol tag starts a numbered list. It can contain only li (193) tags, which denote the various elements in the list. Each item will be preceded by a number. The ol tag can occur inside a text, but surrounding text should always be enclosed in a p (208) paragraph tag, i.e. an ol tag should occur always at the same level as a p tag.

Example:

<p>some text before</p>
<ol>
<li>First item in the list</li>
<li>Second item in the list</li>
</ol>

Will be typeset as:

some text before

  1. First item in the list.

  2. Second item in the list.

See also: li (193), ul (235).