martin2k

The OL Tag

HomeForumTutorials Tags:
 
 

Name

Ordered List

Description

Defines an ordered list i.e. a list where each item is prefixed either with numbers, letters or Roman numerals.  Multiple LI (list items) tags are contained within this tag to define each item in the list.

OL tags can be nested to create sub lists.

Attributes

TYPE

This can be set to the following to change the type of list:

Value Order of List Items
A A,B,C...
a a,b,c...
I I,II,III...
i i,ii,iii...
1 (default) 1,2,3...

When lists are nested, the type will change automatically.

Related Tags

The LI tag is used within the OL this tag.  The UL (unordered list) tag can be used to create bullet pointed lists instead.

Example

Code

<p>States:</p>

<ol>
  <li>Alabama</li>
  <li>Alaska</li>
  <li>Arizona</li>
  <li>...</li>
</ol>

Generates

States:

  1. Alabama
  2. Alaska
  3. Arizona
  4. ...

Please fill in the below form if you have any comments or additional information you want to add about the above information.  If you have any questions, please visit the ForumAny questions sent using this form will be ignored.

* - Mandatory

*Name: E-mail:

*Comments:

*Please type the following code (your comment cannot be accepted without it):


© Martin Allen 1999 - 2006.  Last updated Wednesday 08 November 2006 07:10:19 PM -0000.