4.3.16 ol : Numbered list.

The ol tag starts a numbered list. It can contain only li (124) 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 (135) paragraph tag, i.e. an ol tag should occur always at the same level as a p tag.

Example:

 some text before

 
     
  1. First item in the list
  2.  
  3. Second item in the list
  4.  

Will be typeset as:

some text before

  1. First item in the list.
  2. Second item in the list.

See also: li (124), ul (159).