<OL></OL>
Contains an ordered list of items
Element used to format and display an ordered (numbered) list of items.
<html>
<head>
<title>An Ordered List</title>
</head>
<body>
.
.
==>> <ol>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
==>> </ol>
.
.
</body>
</html>
HTML 3.2 Final
You are allowed to specify a number of attributes for the list:
- type
- This attribute lets you control the type of numbering scheme to apply to your list. The
types are:
=1 - regular numbers (Arabic) like 1, 2, 3 ...
=a - lowercase alpha characters such as a, b, c ...
=A - uppercase alpha characters such as A, B, C ...
=i - lowercase Roman numerals like i, ii, iii ...
=I - uppercase Roman numerals like I, II, III ...
- start
- The starting number for the list. Must be an integer. If you don't use this attribute
then the list starts with 1. You can also use the value attribute of the li
element to set a number. The number sequence is unique to the list. You can't continue a
sequence from another list automatically, you have to specify a start or value
to do that.
- compact
- A "suggestion" to the browser that it ought to reduce the spacing on the list.
I haven't played with this yet but I'm tempted to give it a try just to see what
difference it makes.
Netscape
Nothing special.
Microsoft Internet Explorer
Nothing special.
Internationalization
Nothing special.
The Rusk Family . . . "the Legend
Continues"
Michael T. Rusk
Comments to author: mrusk@radix.net
All contents copyright © 1996, 1997 Michael T. Rusk
All rights reserved.
Revised: December 03, 1997 10:43 -0500
URL: ./htmlgd/tagol.html