dd

< html‎ | elements
Jump to: navigation, search

dd – description list data

This page has been flagged with the following issues:

High-level issues:


W3C Recommendation

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

DOM Interface HTMLDDElement
Permitted contents flow content.
Permitted parents dl.
Tag omission A <dl> element must have both a start tag and an end tag.

Examples

View live exampleThe example shows a simple definition list with two item/description pairs.

HTML

<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>

View live exampleThe example shows a definition list with a single item but multiple descriptions for that item.

HTML

<dl>
  <dt>Coffee</dt>
  <dd>A popular hot drink.</dd>
  <dd>A mid brown colour</dd>
  <dd>A common social invitation</dd>
</dl>

View live exampleThe example shows a definition list with a single description and multiple items fitting that description.

HTML

<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.

CSS

display: block;
margin-left: 40px;

Notes

While HTMLDTElement is the defined DOM interface for this element, most browsers currently use HTMLElement instead.


Related specifications

Specification Status Related Changes
HTML 4.01 W3C Recommendation
HTML 5.1 W3C Editor's Draft

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic Support Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic Support Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)

See also

External resources

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]

}