Lists


You can organize text into a more structured outline by creating lists. Lists can be nested.

<dd>...</dd>

Usage

The definition description used in a dl (definition list) element.

Start/End Tag

Required/Optional (HTML); Required/Required (XHTML 1.0).

Attributes

%coreattrs, %i18n, %events.

Empty

No.

Notes

Can contain block-level content, such as the <p> element.


<dir>...</dir>

Usage

Creates a multicolumn directory list.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Deprecated

compactCompacts the displayed list.

Empty

No.

Notes

Must contain at least one list item. This element is deprecated in favor of the ul (unordered list) element.


<dl>...</dl>

Usage

Creates a definition list.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Deprecated

compactCompacts the displayed list.

Empty

No.

Notes

Must contain at least one <dt> or <dd> element in any order.


<dt>...</dt>

Usage

The definition term (or label) used within a dl (definition list) element.

Start/End Tag

Required/Optional (HTML); Required/Required (XHTML 1.0).

Attributes

%coreattrs, %i18n, %events.

Empty

No.

Notes

Must contain text (which can be modified by text markup elements).


<li>...</li>

Usage

Defines a list item within a list.

Start/End Tag

Required/Optional (HTML); Required/Required (XHTML 1.0).

Attributes

%coreattrs, %i18n, %events.

Deprecated

type="..."Changes the numbering style (1, a, A, i, I) in ordered lists or bullet style (disc, square, circle) in unordered lists. value="..."Sets the numbering to the given integer, beginning with the current list item.

Empty

No.


<menu>...</menu>

Usage

Creates a single-column menu list.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Deprecated

compactCompacts the displayed list.

Empty

No.

Notes

Must contain at least one list item. This element is deprecated in favor of the ul (unordered list) element.


<ol>...</ol>

Usage

Creates an ordered list.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Deprecated

compactCompacts the displayed list.

 

start="..."Sets the starting number to the chosen integer.

 

type="..."Sets the numbering style (1, a, A, i, I).

Empty

No.

Notes

Must contain at least one list item.


<ul>...</ul>

Usage

Creates an unordered list.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Deprecated

compactCompacts the displayed list.

 

type="..."Sets the bullet style (disc, square, circle).

Empty

No.

Notes

Must contain at least one list item.





Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day (5th Edition)
ISBN: 0672328860
EAN: 2147483647
Year: 2007
Pages: 305

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net