Webmaster

you are here: Lycos Home » Lycos Webmaster » References » HTML 4.0 » Lists
References : HTML 4.0

 | Index | 
 | Structure | Text paragraphs and phrases | Text formatting | Lists | Links | Tables | Frames | Embedded content | Style | Forms | Scripts | 
 | All tags | 

Lists

Document layout structure can be further enhanced by using lists. Moreover, lists can be nested.

<dd> | <dir> | <dl> | <dt> | <li> | <menu> | <ol> | <ul>

<dd>...</dd>
Definition description used in a dl element (definition list).
 
Starting/ending tag Required/Optional (HTML)
Required/Required (XHTML 1.0).
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Notes Can contain block-level content, such as the <p> element.
 
Example<dl>
<dt>Plane</dt>
<dd>Flying object</dd>
<dt>Train</dt>
<dd> Rolling object</dd>
</dl>
 
 Top
<dir>...</dir>
Creates a multi-column directory list.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Deprecated Deprecated compact: Compacts the displayed list.
 
Empty No
 
Notes Must contain at least one list item. This element is deprecated in favour of the ul (unordered list) element.
 
 Top
<dl>...</dl>
Creates a glossary or definition list.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Deprecated Deprecated compact: Compacts the displayed list.
 
Empty No
 
Notes Must contain at least a <dt> or <dd> element in any order.
 
Example<dl>
<dt>Plane</dt>
<dd>Flying object</dd>
<dt>Train</dt>
<dd>Rolling object</dd>
</dl>
 
 Top
<dt>...</dt>
The definition text used within a dl (definition list) element.
 
Starting/ending tag Required/Optional (HTML)
Required/Required (XHTML 1.0).
 
Attributes Attributes %coreattrs, %i18n, %events
 
Empty No
 
Notes Must contain text (which can be modified by text markup elements).
 
Example<dl>
<dt>Plane</dt>
<dd>Flying object</dd>
<dt>Train</dt>
<dd>Rolling object</dd>
</dl>
 
 Top
<li>...</li>
Defines a list item.
 
Starting/ending tag Required/Required (HTML)
Required/Required (XHTML 1.0).
 
Attributes Attributes %coreattrs, %i18n, %events
 
Deprecated Deprecated type="...": Changes the numbering style (1, a, A, i, I) or ordered lists, or the bullet style (disc, square, circle) in unordered lists.
value="...": Sets the numbering to the given integer, beginning with the current list item.
 
Empty No
 
Example<ol>
<li>First element</li>
<li>Second element</li>
</ol>
 
 Top
<menu>...</menu>
Creates a single-column menu list.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Deprecated Deprecated compact: Compacts the displayed list.
 
Empty No
 
Notes Must contain at least one list item. This element is deprecated in favour of the ul (unordered list) element.
 
 Top
<ol>...</ol>
Creates an ordered list
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Deprecated Deprecated compact: Compacts the displayed list.
start="...":Defines the starting number for the chosen integer.
type="...": Defines the numbering style (1, a, A, i, I).
 
Empty No
 
Notes Must contain at least one list item.
 
Example<ol>
<li>First element</li>
<li>Second element</li>
</ol>
 
 Top
<ul>...</ul>
Creates an unordered list.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
 
Deprecated Deprecated compact: Compacts the displayed list.
type="...": Sets the bullet style (disc, square, circle).
 
Empty No
 
Notes Must contain at least one list item.
 
Example<ul>
<li>First element</li>
<li>Second element</li>
</ul>
 
 Top

 | Index | 
 | Structure | Text paragraphs and phrases | Text formatting | Lists | Links | Tables | Frames | Embedded content | Style | Forms | Scripts | 
 | All tags |