HTML <dl> tag

Updated: 10/11/2017 by Computer Hope

HTML dl tagWhen writing in HTML, the <dl> tag, also known as the HTML description list element, is a block element used to contain a list of definitions and their descriptions. For example, the <dl> tag could be used to create a glossary of terms. It is the parent of the <dt> and <dd> elements. The following sections contain information about the <dl> tag, including an example of it in use, as well as related attributes and browser compatibility.

Example code

<dl>
<dt>Bear</dt>
<dd>Large brown mammal</dd>
<dt>Frog</dt>
<dd>Small green amphibian</dd>
</dl>

Example result

Bear
Large brown mammal
Frog
Small green amphibian

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <dl> tag does not have any unique attributes, it does utilize all of the standard attributes.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
All versions All versions All versions All versions All versions

Browser, Compatibility, Glossary, Web design terms