Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1002427 of <dd>

  • Revision slug: Web/HTML/Element/dd
  • Revision title: <dd>
  • Revision id: 1002427
  • Created:
  • Creator: rolandmaio
  • Is current revision? No
  • Comment Changed reference to definition list element to description list in second sentence.

Revision Content

{{HTMLRef}}

The HTML <dd> element (HTML Description Element) indicates the description of a term in a description list ({{HTMLElement("dl")}}) element. This element can occur only as a child element of a description list and it must follow a {{HTMLElement("dt")}} element.

Content categories None
Permitted content Flow content.
Tag omission Must have a start tag. The end tag may be omitted if this element is immediately followed by another <dd> element, or if there is no more content in the parent element.
Permitted parent elements After a {{HTMLElement("dt")}} or a {{HTMLElement("dd")}} element, inside a {{HTMLElement("dl")}}.
DOM interface {{domxref("HTMLElement")}}

Attributes

This element includes the global attributes.

{{htmlattrdef("nowrap")}} {{Non-standard_inline}}
If the value of this attribute is set to yes, the definition text will not wrap. The default value is no.

Example

For an example, see <dl> examples.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', 'grouping-content.html#the-dd-element', '<dd>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'grouping-content.html#the-dd-element', '<dd>')}} {{Spec2('HTML5 W3C')}}  
{{SpecName('HTML4.01', 'struct/lists.html#h-10.3', '<dd>')}} {{Spec2('HTML4.01')}}  

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatVersionUnknown}} {{CompatGeckoDesktop("1.0")}} [1] {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatGeckoMobile("1.0")}} [1] {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}

[1] Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the HTMLSpanElement interface for this element.

See also

  • {{HTMLELement("dl")}}, {{HTMLElement("dt")}}

Revision Source

<p>{{HTMLRef}}</p>

<p>The&nbsp;<strong>HTML <code>&lt;dd&gt;</code> element</strong>&nbsp;(<em>HTML Description Element</em>) indicates the description of a term in a description list ({{HTMLElement("dl")}}) element. This element can occur only as a child element of a description list and it must follow a {{HTMLElement("dt")}} element.</p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row"><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Content categories</a></th>
   <td>None</td>
  </tr>
  <tr>
   <th scope="row">Permitted content</th>
   <td><a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content_categories#Flow_content">Flow content</a>.</td>
  </tr>
  <tr>
   <th scope="row">Tag omission</th>
   <td>Must have a start tag. The end tag may be omitted if this element is immediately followed by another <code>&lt;dd&gt;</code> element, or if there is no more content in the parent element.</td>
  </tr>
  <tr>
   <th scope="row">Permitted parent elements</th>
   <td>After a {{HTMLElement("dt")}} or a {{HTMLElement("dd")}} element, inside a {{HTMLElement("dl")}}.</td>
  </tr>
  <tr>
   <th scope="row">DOM interface</th>
   <td>{{domxref("HTMLElement")}}</td>
  </tr>
 </tbody>
</table>

<h2 id="Attributes">Attributes</h2>

<p><span style="line-height:21px">This element includes the&nbsp;</span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">global attributes</a><span style="line-height:21px">.</span></p>

<dl>
 <dt>{{htmlattrdef("nowrap")}} {{Non-standard_inline}}</dt>
 <dd>If the value of this attribute is set to <code>yes</code>, the definition text will not wrap. The default value is <code>no</code>.</dd>
</dl>

<h2 id="Example">Example</h2>

<p>For an example, see <a href="/en-US/docs/HTML/Element/dl#examples" title="HTML/Element/dl#examples">&lt;dl&gt; examples</a>.</p>

<h2 id="Specifications" name="Specifications">Specifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'grouping-content.html#the-dd-element', '&lt;dd&gt;')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>&nbsp;</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', 'grouping-content.html#the-dd-element', '&lt;dd&gt;')}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>&nbsp;</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML4.01', 'struct/lists.html#h-10.3', '&lt;dd&gt;')}}</td>
   <td>{{Spec2('HTML4.01')}}</td>
   <td>&nbsp;</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("1.0")}} [1]</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoMobile("1.0")}} [1]</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<p>[1] Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the <a href="/en-US/docs/DOM/span" title="DOM/span"><span style="font-family:courier new">HTMLSpanElement</span></a> interface for this element.</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{HTMLELement("dl")}}, {{HTMLElement("dt")}}</li>
</ul>
Revert to this revision