Description
The HTML element <dd>
(in short description definition) is used to define the description of a term in a description list.
It is used within a description list along with the elements <dl> and <dt>.
It can include any Block elements including headings, paragraphs, images, links, etc.,
The below table summarizes its usage.
Usage Details | |
Placement | It is a child of <dl> element. |
Contents | It can contain Block elements, Inline elements, and text. |
Tags | Both opening and closing tags are required. |
Versions | HTML 2, 3.2, 4, 4.01, 5 |
NOTE: The element <dd>
must be used within the <dl>
element and must be defined after the definition term is defined using the <dt>
element.
Syntax
Here is the basic syntax of the <dd>
element.
<dd>...</dd>
Examples
In the below example, the <dd>
element is used to define the description or definition of the terms defined using <dt>
elements.
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<h1>HTML Description List</h1>
<dl>
<dt>Term 1</dt>
<dd>Description of term 1</dd>
</dl>
<dl>
<dt>Term 2</dt>
<dd>Description of Term 2</dd>
</dl>
...
</body>
</html>
Attributes
The following table shows the list of supported and unsupported attributes for the <dd>
tag.
Attribute Type | Details |
Element-Specific Attributes | The tag <dd> doesn't have any element-specific attributes. |
Global Attributes | Like all other HTML tags, the tag <dd> supports the HTML Global Attributes. |
Event Attributes | The tag <dd> also supports the HTML Event Attributes. |
Browser Compatibility
The tag <dd>
is supported in all modern browsers.
- Google Chrome 1+
- Internet Explorer or Edge 2+
- Firefox 1+
- Apple Safari 1+
- Opera 2.1+