dd – description list data
dd
For technical reasons, the title of this article is not the text used to call this API. Instead, use dd
Summary
The dd element represents the description, definition, or value, part of a term-description group in a definition list (dl).
A dt (topic) is usually followed by one or more ****dd**** (definition) elements. Several consecutive dt are attributed to the ****dd**** element that immediately follows the group.
Overview Table
Permitted contents | [flow content](/w/index.php?title=html/concepts/flowContent&action=edit&redlink=1). |
---|---|
Permitted parents | [dl](/html/elements/dl). |
Tag omission | A **dl** element must have both a start tag and an end tag. |
The example shows a simple definition list with two item/description pairs.
<dl>
<dt>Coffee</dt>
<dd>A popular hot drink.</dd>
<dt>Coca Cola</dt>
<dd>One of the leading brands of a popular cold fizzy drink.</dd>
</dl>
The example shows a definition list with a single item but multiple descriptions for that item.
<dl>
<dt>Coffee</dt>
<dd>A popular hot drink.</dd>
<dd>A mid brown colour</dd>
<dd>A common social invitation</dd>
</dl>
The example shows a definition list with a single description and multiple items fitting that description.
<dl>
<dt>Coffee</dt>
<dt>Tea</dt>
<dt>Vimto (in the North of England)</dt>
<dd>A popular hot drink.</dd>
</dl>
Typical browser default CSS properties for the dd element.
display: block;
margin-left: 40px;
Notes
While HTMLDTElement is the defined DOM interface for this element, most browsers currently use HTMLElement instead.
Related specifications
See also
Other articles
External resources
}
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]