Next / Previous / Contents / TCC Help System / NM Tech homepage

9.9. The ol element: Numbered lists

To create a numbered list of blocks, use the ol (ordinal list) element. This is very similar to Section 9.7, “The ul element: Unnumbered or “bullet” lists”, but the list items will be preceded by numbers instead of bullets. Here's the content model:

element ol
{ Common.attrib,

Any of the attributes from Section 15.3, “The common attributes: Common.attrib.


Each item in the list must be wrapped in a li (list item) element; see Section 9.8, “The li element: List item”. There must be at least one li element, but there can be any number.

Here's an example from the U. S. Declaration of Independence. You don't have to assign numbers yourself; this will be formatted with the list items labeled 1, 2, 3.

      He has affected to render the Military independent of and
      superior to the Civil Power.
      He has combined with others to subject us to a jurisdiction
      foreign to our constitution, and unacknowledged by our
      laws; giving his Assent to their Acts of pretended Legislation:
      For depriving us in many cases, of the benefit of Trial by Jury: