HTML <dl> tag

Updated: 11/13/2018 by Computer Hope
HTML dl tag

When writing in HTML (hypertext markup language), the <dl> tag, also called 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, and related attributes and browser compatibility.

Example of <dl> 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

All HTML tags support standard attributes that define the settings of an HTML element. Unlike other HTML tags, the <dl> tag has no unique attributes.

Compatibility

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

Browser, Compatibility, Container tag, Glossary, Web design terms