Lists

DL - Definition List
DIR - Directory List
MENU - Menu List
OL - Ordered List
UL - Unordered List

HTML supports several types of lists, all of which may be nested.


DL - Definition List

A definition list is a list of terms and corresponding definitions. Definition lists are typically formatted with the term on the left with the definition following on the right or on the next line. The definition text is indented with respect to the term.

For example:

<DL>
<DT>Term 1<dd>This is the definition of the first term.
<DT>Term 2<dd>This is the definition of the second term.
</DL>

which could be rendered as:

Term 1
This is the definition of the first term.
Term 2
This is the definition of the second term.

An alternative format places the term in the left wide margin and the definition on one or more lines to the right of the term. If the DT term does not fit in the DT column (one third of the display area), it may be extended across the page with the DD section moved to the next line, or it may be wrapped onto successive lines of the left hand column.

The definition list type can take the COMPACT attribute, which suggests that a compact rendering be used, because the list elements are small and/or the entire list is large.

Unless you provide the compact attribute, HTML leaves white space between successive DT, DD pairs.The COMPACT attribute may also reduce the width of the left-hand (DT) column.

The opening list tag must be DL COMPACT. It must be immediately followed by the first term (DT). For example:

<DL compact>
<DT>Term<DD>This is the first definition in compact format.
<DT>Term<DD>This is the second definition in compact format.
</DL>

3.11.2 DIR (Directory List)

Level: 0

A directory list is a list of items containing up to 20 characters each. The items in a directory list may be arranged in columns (typically 24 characters wide). If the rendering software is able to optimize the column width as function of the widths of individual elements, so much the better.

The opening list tag must be <DIR> and must be immediately followed by the first list item (<LI>). For example:

<DIR>
<LI>A-H<LI>I-M
<LI>M-R<LI>S-Z
</DIR>

3.11.3 MENU (Menu List)

Level: 0

A menu list is a list of items with typically one line per item. The menu list style is more compact than the style of an unordered list.

The opening list tag must be <MENU> and must be immediately followed by the first list item (<LI>). For example:

<MENU>
<LI>First item in the list.
<LI>Second item in the list.
<LI>Third item in the list.
</MENU>

3.11.4 OL (Ordered List)

Level: 0

An ordered list typically is a numbered list of items used to indicate a sequence or order of importance.

The opening list tag must be <OL>. It must be immediately followed by the first list item (<LI>). For example:

<OL>
<LI>Click the Web button of the OLIAS Launcher.
OLIAS opens the Open URL window.
<LI>Enter the URL number in the text field of the Open URL
window.OLIAS displays the Web document you specified.
<LI>Click highlighted text to move from one link to another.
</OL>

3.11.5 UL (Unordered List)

Level: 0

An unordered list is a list of items that is typically separated by white space and/or marked by bullets, etc.

The opening list tag must be <UL> and must be immediately followed by the first list item (<LI>). For example:

<UL>
<LI>First list item
<LI>Second list item
<LI>Third list item
</UL>

HTML 2.0 Specification (draft) - 13 OCT 94
[Next] [Previous] [Up] [Top]

Generated with WebMaker