Description

The HTML element <dt> (short form of description term) is used to specify a term of an item in a description list.

It must be used as a child of the <dl> element, so it must always be specified inside the <dl> element.

The below table summarizes its usage.

Usage Details
Placement It must be specified inside the <dl> element.
Contents It can contain Inline elements and text.
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 <dt> element.

<dt>...</dt>

Examples

In the below example, the <dt> element is used to specify a term in a description list, where the <dl> element to define the list and <dd> element to define the term's description.

<!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 <dt> tag.

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

Browser Compatibility

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

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

Related Links