Description

The HTML element <dl> (short form of description list) is used to define a description list in an HTML document.

It must be used in conjunction with the below elements.

  • Element <dt> for description term
  • Element <dd> for description

The below table summarizes its usage.

Usage Details
Placement It is displayed as a Block element.
Contents It can contain <dt> and <dd> elements.
Tags Both opening and closing tags are required.
Versions HTML 2, 3.2, 4, 4.01, 5

Syntax

Here is the basic syntax of the <dl> element.

<dl>...</dl>

Examples

In the below example, the <dl> element is used to define a description list, where the <dt> element comes first and then its <dd> element as shown below.

<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
    <h1>HTML Element - dl</h1>
    <dl>
        <dt>Term 1</dt>
        <dd>Description of term 1</dd>
        <dt>Term 2</dt>
        <dd>Description of term 2</dd>
        <dt>Term 3</dt>
        <dd>Description of term 3</dd>
    </dl>
</body>
</html>

Attributes

The following table shows the list of supported and unsupported attributes for the <dl> tag.

Attribute Type Details
Element-Specific Attributes The tag <dl> doesn't have any element-specific attributes.
Global Attributes Like all other HTML tags, the tag <dl> supports the HTML Global Attributes.
Event Attributes The tag <dl> also supports the HTML Event Attributes.

Browser Compatibility

The tag <dl> is supported in all modern browsers.

  • Google Chrome 1+
  • Internet Explorer or Edge 2+
  • Firefox 1+
  • Apple Safari 1+
  • Opera 2.1+

Related Links