martin2k

The LI Tag

HomeForumTutorials Tags:
 
 

Name

List Item

Description

Defines a list item either in an ordered list (OL) or an unordered list (UL).  Multiple LI tags are contained within the OL or UL tags.

Attributes

TYPE

For ordered lists, this can be set to the following:

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...

For unordered lists, this can be set to the following for the bullet point type:

Value
disc (default)
square
circle

When lists (OL or UL tags) are nested, the bullet point type will default to another e.g. the next default unordered type is square.

Related Tags

The LI tag is used within the OL, UL and MENU tags.

Example

Code

<p>States:</p>

<ol>
  <li>Alabama</li>
  <li type="A">Alaska</li>
  <li type="I">Arizona</li>
  <li>...</li>
</ol>

Generates

States:

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

Code

<p>States:</p>

<ul>
  <li>New York</li>
  <li type="square">Iowa</li>
  <li type="circle">Massachusetts</li>
  <li>...</li>
</ul>

Generates

States:

  • New York
  • Iowa
  • Massachusetts
  • ...

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 Sunday 15 October 2006 06:28:33 PM +0100.