Tag Description
The dl tag is used to define a definition list.
The <dl>
tag is used in conjunction with <dt>
(defines the item in the list) and
<dd>
(describes the item in the list).
This tag has the form:
<dl>
text
</dl>
HTML5 and HTML4.01 Differences
None.
Global Attributes
This tag also supports the HTML Global Attributes.
Event Attributes
This tag also supports the HTML Event Attributes.
Examples
The following example shows the basic use of this tag:
<dl>
<dt>Item 1</dt>
<dd>- Sub-item 1A</dd>
<dt>Item 2</dt>
<dd>- Sub-item 2A</dd>
</dl>
This gives the following result:
- Item 1
- - Sub-item 1A
- Item 2
- - Sub-item 2A
Browser Support
Chrome | Firefox | IE | Safari | Opera |
---|---|---|---|---|
Doctype Declaration Support
The following table lists the doctype declarations this element may appear in:
HTML4.01 / XHTML1.0 | XHTML 1.1 | HTML 5 | ||
---|---|---|---|---|
Traditional | Strict | Frameset | ||
Miscellaneous Information
Defined In: | HTML 2 |
---|---|
Empty Tag: | No |