RETURN TO HTML TUTORIAL HOME
HTML Ordered Lists
By Nannette Thacker - 02/02/2001
This lesson will show how to create ordered lists.
To create an ordered list, like below:
- This is an example of an ordered list.
It will automatically number the points for you.
- Lists do NOT require that you put line
breaks following each line.
Notice how the line wraps and indents if it is
longer than one line.
- Here's a secret. The closing </li> tag
can be, and is usually omitted.
You would use the following HTML commands, like below:
<ol>
<li>This is an example of an ordered list.
It will automatically number the points for you.
</li>
<li>Lists do NOT require that you put line
breaks following each line.
Notice how the line wraps and indents if it is
longer than one line.
<li>Here's a secret. The closing </li> tag
can be, and is usually omitted.
</OL>
|
You may choose to start your list at a higher number by using the "start" attribute.
You may also use the "type" attribute, as per below, to designate what style to use:
Here are the "type" values:
- 1 = Arabic numerals (default)
- A = Capital Letters
- a = Lowercase Letters
- I = Capital Roman numerals
- i = Lowercase Roman numerals
The above will look like this:
<b>Here are the "type" values:</b><br>
<ol start=5 type="A">
<li>1 = Arabic numerals (default)
<li>A = Capital Letters
<li>a = Lowercase Letters
<li>I = Capital Roman numerals
<li>i = Lowercase Roman numerals
</OL>
|