Ordered List

Ordered lists are vertical arrangements of items, with each item in the list preceded by a number or letter. Use ordered lists when the sequence of the items is important, such as in a procedure.

To create an ordered list, use the ordered-list tag (:ol.) to begin the list and :eol. to end it. Identify each item in the list with :li..

Input Example

:ol.
:li.Open the diskette-drive door.
:li.Remove the diskette.
:li.Store the diskette in a safe place.
:eol.

Formatted Output

A Compact Ordered List: Use the compact attribute to produce a list with no blank lines between the list items.

Input Example

:ol compact.:li.Open the diskette-drive door.
:li.Remove the diskette.
:li.Store the diskette in a safe place.
:eol.

Formatted Output

Nested Ordered Lists: The following example contains two nested, ordered lists. Notice that sequential numbers precede items in the first-level list, and sequential letters precede items in the second-level list. Numbers and letters alternate for each level of the list. That is, third-level list items would be preceded by numbers, fourth-level by letters, and so on.

Input Example

:ol.:li.First item in the first-level list.
:li.Second item in the first-level list.
This item has a nested list within it.
:ol.
:li.First item in the second-level list.
:li.Second Item in the second-level list.
:eol.
:li.Third item in the first-level list.
:eol.

Formatted Output