contents.gifindex.gifprev1.gifnext1.gif

pueblo00000000.gif <li> element

The List Item element is used to list a single item in a list. The element begins following the <li> tag and continues until the next <li> tag or until the list is terminated.

Attributes

TYPE

The TYPE attribute may be used on the <li> tag to specify how list items should be marked. The following values are supported:

type=disc Places a round bullet by the list item.

type=circle Same as type=disc.

type=square Places a square bullet by the list item.

In addition, the following values are supported for ordered lists:

type=A Capital letters. e.g. A, B, C ...

type=a Small letters. e.g. a, b, c ...

type=I Large roman numerals. e.g. I, II, III ...

type=i Small roman numerals. e.g. i, ii, iii ...

type=1 The default numbers. e.g. 1, 2, 3 ...

VALUE

The VALUE attribute works in ordered lists and changes the value for the list item and all subsequent list items.

Examples

The following example creates an ordered list, starting the first element with the value ‘5’ and using capital roman numerals. The last item is numbered with the value 10:

<ol>

<li type=I value=5>Fifth item

<li>Sixth item

<li value=10>Tenth item

</ol>

Also see

<dir>

<ol>

<ul>