<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:
- type=1 results in Arabic numeration: 1, 2, 3, etc.
- type=a results in lowercase alphabetic "numeration:" a, b, c, etc.
- type=A results in uppercase alphabetic "numeration:" A, B, C, etc.
- type=i results in lowercase Roman numeration: i, ii, iii, etc.
- type=I results in uppercase Roman numeration: I, II, III, etc.
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:
- First item, whose unwieldy length
indicates nothing but that list items
correctly exhibit a hanging indent.
- Nested list item 1
- Nested list item 2
- Nested list item 3
- Nested list item 4
- Nested list item 5
- Nested list item 6
- Second item
- Third item
. . .causes the following to be displayed:
Here is a nested list:
- First item, whose unwieldy length
indicates nothing but that list items
correctly exhibit a hanging indent.
- Nested list item 1
- Nested list item 2
- Nested list item 3
- Nested list item 4
- Nested list item 5
- Nested list item 6
- Second item
- Third item
Last Modified: