Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)

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.

Attributes

core, i18n, events.

Empty

No.

Notes

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

<dl></dl>

Usage

Creates a definition list.

Start/End Tag

Required/Required.

Attributes

core, i18n, events.

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.

Attributes

core, 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.

Attributes

core, i18n, events.

Empty

No.

<ol></ol>

Usage

Creates an ordered list.

Start/End Tag

Required/Required.

Attributes

core, i18n, events.

Empty

No.

Notes

Must contain at least one list item.

<ul></ul>

Usage

Creates an unordered list.

Start/End Tag

Required/Required.

Attributes

core, i18n, events.

Empty

No.

Notes

Must contain at least one list item.

Категории