Creating an Ordered List
A basic list in HTML consists of a list-identifier container plus the standard list items tag. (In HTML, all list items use one tag,
Using the Tag
Ordered (or numbered) lists begin with the - tag, and each item uses the standard
- tag. If needed, you can create a list heading by using the
tag. Close the list with the
Additional Attributes
HTML 4.0 defines a handful of attributes for the - tag, which began as a Netscape extension. Now that these attributes have gained acceptance, they're part of the HTML specification.
These attributes give you control over the appearance of the item markers and the beginning marker number. Attribute Description
COMPACT Renders the list in a more compact form
TYPE=A Sets markers to uppercase letters
TYPE=a Sets markers to lowercase letters
TYPE=I Sets markers to uppercase Roman numerals
TYPE=i Sets markers to lowercase Roman numerals
TYPE=1 Sets markers to numbers
START=n Sets beginning value of item markers in the current list