LIST Elements

HTML allows one to define various types of logical lists on the screen. HTML List types are:

Glossary (dictionary) Lists

The DL element declares that the embedded information should be presented in the form of a Glossary list. It is a sequence of terms and their descriptions. Glossary (or dictionary) lists are composed of two type of elements, DT and DD.

It can be in:

It can contain:

DT Attributes

Syntax:

<DL> ... </DL>

DT Element

The DT element lists the name of an item in a Glossary List.

It can be in:

It can contain:

Syntax:

<DT> ... </DT>

DD Element

The DD element lists the definition of the preceding item (DT) in a Glossary List.

It can be in:

It can contain:

Syntax:

<DT> ... </DT>

Directory Lists

The DIR element declares that the embedded information should be presented in the form of a Directory. It is a sequence of short items. Many browsers will present the directory as a series of columns.

It can be in:

It can contain:

DIR Attributes

Syntax:

<DIR> ... </DIR>

Menu Lists

The MENU element declares that the embedded information should be presented in the form of a Menu. It is a sequence of short items. It is similar to the Unordered List (UL) with the compact attribute. Many browsers will present the Menu identically with the UL lists.

It can be in:

It can contain:

MENU Attributes

Syntax:

<MENU> ... </MENU>

Ordered Lists

The OL element declares that the embedded information should be presented in the form of a Ordered List. It is a sequence of items which are numerically ordered. The browsers will order the list by numbering its items. Some browsers will use ascending letters.

It can be in:

It can contain:

OL Attributes

Syntax:

<OL> ... </OL>

Unordered Lists

The UL element declares that the embedded information should be presented in the form of an Unordered List. It is a sequence of items which are indicated by a bullet or other special symbol. Netscape allows one to define the symbol.

It can be in:

It can contain:

UL Attributes

Syntax:

<UL> ... </UL>

LI Element

The LI element is the item within a list. Except for Glossary Lists, LI is used with all lists.

It can be in:

It can contain:

Syntax:

<LI> ... </LI>