HTML <dd> Tag

Topic: HTML5 Tags Reference« Prev|Next »

Description

The <dd> (short for definition description) tag represents the description or definition of an item in a description list. This element can contain block-level elements such as headings, paragraphs, blockquotes, etc. as well as inline-level elements such as span, em, strong, etc.

The following table summarizes the usages context and the version history of this tag.

Parent: <dl>
Content: Block, inline, and text
Start/End Tag: Start tag: required, End tag: optional
Version: HTML 2, 3.2, 4, 4.01, 5
 

Note:The <dd> element can only occur inside the definition list i.e. <dl> element and it must follow a definition term defined by the <dt> element.


Syntax

The basic syntax of the <dd> tag is given with:

HTML / XHTML: <dd> ... </dd>

The example below shows the <dd> tag in action.

  • <dl>
  •     <dt>term1</dt>
  •     <dd>– definition1</dd>
  •     <dt>term2</dt>
  •     <dd>– definition2</dd>
  • </dl>

Tag-Specific Attributes

The <dd> tag doesn't have any specific attribute.


Global Attributes

Like all other HTML tags, the <dd> tag supports the global attributes in HTML5.


Event Attributes

The <dd> tag also supports the event attributes in HTML5.


Browser Compatibility

The <dd> tag is supported in all major modern browsers.

Browsers Icon

Basic Support—

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

Further Reading

See tutorial on: HTML Lists.

Related tags: <dl>, <dt>.

 
Close

Your Feedback:

 

We would love to hear from you! Please say something.