Framify

Tag: <ol>

<ol> Syntax

Syntax Diagram for <ol>
Opening Tag Content Closing
Tag
Open Parameter = Value Close
<ol type = 1 > list </ol>
a
A
i
I

Syntax Diagram for <li>
Opening Tag Content Closing
Tag
Open Parameter = Value Close
<li type = 1 > item
text
</li>
a
A
i
I
value = value

<ol> Description

The <ol>. . . </ol> tags delimit an ordered list, each item of which is indicated by the "list item" tag <li>. Both the <ol> and the <li> tag allow specification of numeration type. The default type is Arabic numerals: 1, 2, 3, etc.

The available numeration types are:

Be default, list items are labelled starting with a value of 1 (in whatever the current style is), and each subsequent one is labelled with a value one greater than its predecessor. You can override this incremental ordering and start or continue the ordering anywhere you like by specifying value=value. Note that value is always specified in Arabic numerals, even if the current type is alphabetic or Roman numerals.

<ol> Examples

This markup: Here is a nested list: <ol type=a> <li>First item, whose unwieldy length indicates nothing but that list items correctly exhibit a hanging indent. <ol type=I> <li>Nested list item 1 <li value=9>Nested list item 2 <li>Nested list item 3 <li>Nested list item 4 <li type=1>Nested list item 5 <li>Nested list item 6 </ol> <li>Second item <li>Third item </ol> . . .causes the following to be displayed:
Here is a nested list:
  1. First item, whose unwieldy length indicates nothing but that list items correctly exhibit a hanging indent.
    1. Nested list item 1
    2. Nested list item 2
    3. Nested list item 3
    4. Nested list item 4
    5. Nested list item 5
    6. Nested list item 6
  2. Second item
  3. Third item

Last Modified: