the complete webmaster
tutorials reviews reference
ASP
CGI
FrontPage
HTML
Java
JavaScript

home / reference / html

<ol></ol>
compact   type   start

The <ol> tag is used to create an ordered list. Between the <ol></ol> tags, the page must have an li tag, or list item tag, for each item in the list.

Code
   <ol>
<li>LIST ITEM ONE
<li>LIST ITEM TWO
</ol>
Appearance
  
  1. LIST ITEM ONE
  2. LIST ITEM TWO

<ol compact>

   Description
   The compact attribute is used get rid of excess space between items in a list.
Code
   <ol compact>
<li>LIST ITEM ONE
<li>LIST ITEM TWO
</ol>
Appearance
  
  1. LIST ITEM ONE
  2. LIST ITEM TWO

<ol type="">

   Description
   The type attribute is used to define what type of numbering system your list will use. Not using this attribute defaults the type to the standard numbers. Other acceptable values include "A", which uses uppercase letters starting with A; "a", which uses lowercase letters starting with a; "I", which uses uppercase Roman Numerals starting with I; and "i", which uses lowercase Roman Numerals starting with i.
Code
   <ol type="i">
<li>LIST ITEM ONE
<li>LIST ITEM TWO
</ol>
Appearance
  
  1. LIST ITEM ONE
  2. LIST ITEM TWO

<ol start="">

   Description
   The start attribute is used if you wish your ordered list to start with a number other than one. Set the value to the number you want the list to start with.
Code
   <ol start="4">
<li>LIST ITEM ONE
<li>LIST ITEM TWO
</ol>
Appearance
  
  1. LIST ITEM ONE
  2. LIST ITEM TWO
write for us about us advertise

Copyright 1997, 1998 A Big Lime. All rights reserved.