The Comprehensive HTML Cross Reference


List Tags

This document describes tags associated with lists.

Click here to skip over the explanatory material at the top of the page and jump straight to the tags.

This table:

Support: HTML:2.0, 3.0, 3.2  Netscape:1.1+  MS Explorer:1.0+
and these icons:
(HTML 3.0 Only) (HTML 3.2 Only) (Netscape Extension) (Microsoft Extension) (Microsoft Extension 3.0)

alert you to tags and attributes that are not supported by all browsers. The support page explains the table and the icons in detail.

CDI Home Page

Finding your way around...

Not all HTML tags are in this single file. The comprehensive list has been split into the following eight categories:

We have also provided several indexes to help you navigate through this reference. In addition to our main indexes (the compact index and the complete index), there are four other indexes that list the tags according to the standards and browsers that support them.

CDI Home Page

The Comprehensive HTML Cross Reference was created as a service to the Internet community. It represents a joint effort of Scott Williams of CDI Corporate Education Services and Kate Gregory of Gregory Consulting and is fully protected by Copyright © 1995 - 2001. Please report any errors or omissions to Kate Gregory.

CDI Home Page

Definition List


<DL> list entries </DL>
<DL COMPACT>
list entries </DL>
<DT>
term
<DD> definition

The definition list tag introduces a definition list or glossary, which is made up of term (DT) and definition (DD) items. The </DT> and </DD> tags are optional. Typically the definitions are indented under each term, with no blank lines around them. If COMPACT was specified (and the terms are short) the terms and definitions are on the same line. Do not use multiple DD elements for the same DT -- instead use BR within the DD.

(HTML 3.0 Only) A list heading (LH) may be included before the first definition term.

CDI Home Page

Directory List


<DIR> list entries </DIR>
(HTML 3.2 Only) <DIR COMPACT> list entries </DIR>

The directory list tag introduces a directory list, which is made up of List Item (LI) tags and does not include bullets or numbers before them. The items should be short so that they can be arranged into columns. For a bulleted list use UL. For a numbered list use OL. For a list without bullets or numbers that is not arranged into columns use MENU. The COMPACT attribute instructs the browser to reduce the space occupied by the list.

In HTML 3.0, the same effect can be achieved with <UL PLAIN WRAP=HORIZ>. The DIR tag will probably be obsolete some day, so use UL.

CDI Home Page

List Item


<LI> text </LI>
(HTML 3.0 Only) <LI SRC=
URL> text </LI>
(HTML 3.0 Only) <LI DINGBAT=
"entity-name"> text </LI>
(HTML 3.0 Only) <LI SKIP=
number> text </LI>
(HTML 3.2 Only) <LI TYPE=type> text </LI>
(HTML 3.2 Only) <LI VALUE=number> text </LI>

The list item tag defines one entry in an ordered, unordered, menu, or directory list. Other tags may be embedded in a list item.

(HTML 3.0 Only)The SRC attribute uses the image specified by the URL as the bullet for this item. The DINGBAT attribute identifies an iconic entity for the bullet. The SKIP attribute is used with ordered lists to skip forward in the count.

(HTML 3.2 Only) The TYPE attribute changes the bullet or numbering style for this item. type has the same values as it would in the OL or UL tag. The VALUE attribute resets the sequence number to number.

CDI Home Page

Menu List


<MENU> list entries </MENU>
(HTML 3.2 Only) <MENU COMPACT> list entries </MENU>

The menu list tag introduces a menu list, which is made up of List Item (LI) tags and does not include bullets or numbers before them. For a bulleted list use UL. For a numbered list use OL. For a list without bullets or numbers made up of short items that can be arranged into columns use DIR. The COMPACT attribute instructs the browser to reduce the space occupied by the list.

In HTML 3.0, the same effect can be achieved with <UL PLAIN>. The MENU tag will probably be obsolete some day, so use UL.

CDI Home Page

Ordered List


<OL> list entries </OL>
(HTML 3.2 Only) <OL COMPACT> list entries </OL>
(HTML 3.0 Only) <OL SEQNUM=
number> list entries </OL>
(HTML 3.0 Only) <OL CONTINUE>
list entries </OL>
(HTML 3.2 Only) <OL START=number> list entries </OL>
(HTML 3.2 Only) <OL TYPE=type> list entries </OL>

The ordered list tag introduces an ordered (numbered) list, which is made up of List Item (LI) tags. The COMPACT attribute instructs the browser to reduce the space occupied by the list. For a bulleted list use UL. For a list without bullets or numbers use MENU. For a list without bullets or numbers made up of short items that can be arranged into columns use DIR.

(HTML 3.0 Only) A list heading (LH) may be included before the first list item. The SEQNUM attribute allows the first list item to be number instead of the default 1. The CONTINUE attribute continues the numbering from the previous ordered list.

(HTML 3.2 Only) The START attribute allows the first list item to be number instead of the default 1. The TYPE attribute governs the way items are numbered:

A
A, B, C...
a
a, b, c...
I
I, II, III...
i
i, ii, iii...
1
1, 2, 3...

CDI Home Page

Unordered List


<UL> list entries </UL>
<UL COMPACT>
list entries </UL>
(HTML 3.0 Only) <UL SRC=
"URL" > list entries </UL>
(HTML 3.0 Only) <UL DINGBAT=
"entity-name" > list entries </UL>
(HTML 3.0 Only) <UL PLAIN>
(HTML 3.0 Only) <UL WRAP=
type>
(HTML 3.2 Only) <UL TYPE=type > list entries </UL>

The unordered list tag introduces an unordered (bulleted) list, which is made up of List Item (LI) tags. The COMPACT attribute instructs the browser to reduce the space occupied by the list. For a numbered list use OL. For a list without bullets or numbers use MENU. For a list without bullets or numbers made up of short items that can be arranged into columns use DIR.

(HTML 3.0 Only) A list heading (LH) may be included before the first list item. The SRC attribute identifies a graphic image to be used as a bullet, while the DINGBAT attribute identifies an iconic entity for the bullet. The PLAIN attribute specifies not to use a bullet on each item. The WRAP attribute is either VERT or HORIZ, and indicates multiple columns of data. VERT indicates that the data is to go down the page and then wrap to the next column, and HORIZ indicates that the data is to wrap across each row.

(HTML 3.2 Only) The TYPE attribute specifies the bullet type; type can be DISC, CIRCLE, or SQUARE.