Revision 79215 of <dt>

  • Revision slug: HTML/Element/dt
  • Revision title: dt
  • Revision id: 79215
  • Created:
  • Creator: FreakCERS
  • Is current revision? No
  • Comment 1 words added

Revision Content

Summary

The HTML Definition Term Element (<dt>) identifies a term in a definition list. This element can occur only as a child element of a {{ HTMLElement("dl") }}. It is usually followed by a {{ HTMLElement("dd") }} element; however, multiple <dt> elements in a row indicate several terms that are all defined by the immediate next {{ HTMLElement("dd") }} element.

Usage context

Permitted content Phrasing content.
Tag omission Must have a start tag. The end tag may be omitted if the element is immediately followed by another <dt> element or a {{ HTMLElement("dd") }} element.
Permitted parent elements {{ HTMLElement("dl") }} only
Normative document HTML 5, section 4.5.9; HTML 4.01, section 10.3

Attributes

Like all HTML elements, this element provides the global attributes.

Example

For example see definition list.

DOM interface

This element implements the HTMLElement interface.

Implementation note: up to Gecko 1.9.2 inclusive, Firefox implements the HTMLSpanElement interface for this element.

See also

  • {{ HTMLElement("dd") }}, {{ HTMLElement("dl") }}

{{ HTML:Element_Navigation() }}

{{ languages( { "pl": "pl/HTML/Element/dt" } ) }}

Revision Source

<h2>Summary</h2>
<p>The HTML Definition Term Element (<span style="font-family: Courier New;">&lt;dt&gt;</span>) identifies a term in a definition list. This element can occur only as a child element of a {{ HTMLElement("dl") }}. It is usually followed by a {{ HTMLElement("dd") }} element; however, multiple <code>&lt;dt&gt;</code> elements in a row indicate several terms that are all defined by the immediate next {{ HTMLElement("dd") }} element.</p>
<h2>Usage context</h2>
<table class="standard-table"> <tbody> <tr> <td>Permitted content</td> <td><a href="/en/HTML/Content_categories#Phrasing_content" title="en/HTML/Content categories#Phrasing content">Phrasing content</a>.</td> </tr> <tr> <td>Tag omission</td> <td>Must have a start tag. The end tag may be omitted if the element is immediately followed by another &lt;dt&gt; element or a {{ HTMLElement("dd") }} element.</td> </tr> <tr> <td>Permitted parent elements</td> <td>{{ HTMLElement("dl") }} only</td> </tr> <tr> <td>Normative document</td> <td><a class=" external" href="http://www.w3.org/TR/html5/grouping-content.html#the-dt-element" title="http://www.w3.org/TR/html5/grouping-content.html#the-dt-element">HTML 5, section 4.5.9</a>; <a class=" external" href="http://www.w3.org/TR/html401/struct/lists.html#h-10.3" title="http://www.w3.org/TR/html401/struct/lists.html#h-10.3">HTML 4.01, section 10.3</a></td> </tr> </tbody>
</table>
<h2>Attributes</h2>
<p>Like all HTML elements, this element provides the <a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">global attributes</a>.</p>
<h2>Example</h2>
<p>For example see <a href="/en/HTML/Element/dl#Examples" title="en/HTML/Element/dl#Examples">definition list</a>.</p>
<h2>DOM interface</h2>
<p>This element implements the <code><a href="/en/DOM/element" title="en/DOM/element">HTMLElement</a></code> interface.</p>
<div class="note"><strong>Implementation note: </strong>up to Gecko 1.9.2 inclusive, Firefox implements the <a href="/en/DOM/span" title="en/DOM/span"><span style="font-family: Courier New;">HTMLSpanElement</span></a> interface for this element.</div>
<h2>See also</h2>
<ul> <li>{{ HTMLElement("dd") }}, {{ HTMLElement("dl") }}</li>
</ul>
<p>{{ HTML:Element_Navigation() }}</p>
<p>{{ languages( { "pl": "pl/HTML/Element/dt" } ) }}</p>
Revert to this revision