Diff of The dt element

The section is located at: The elements of HTML → Grouping content → The dt element

Differences between HTML Standard and W3C HTML

Note: This site reformats HTMLs to reduce unnecessary diffs. The following HTMLs are not equal to the specifications. More info.

All of diffs are generated automatically from WHATWG HTML Standard and W3C HTML retrieved at . More info.

WHATWG HTML StandardW3C HTML
The dt elementThe dt element
<h4>4.4.10 The dt element</h4><h4>4.4.10. The dt element</h4>
<dl class="element"><dl class="element">
<dt> <dt>
Categories: Categories:
</dt> </dt>
<dd> <dd>
None. None.
</dd> </dd>
<dt> <dt>
Contexts in which this element can be used: Contexts in which this element can be used:
</dt> </dt>
<dd> <dd>
Before dd or dt elements inside dl elements. Before dd or dt elements inside dl elements.
</dd> </dd>
<dd>
Before dd or dt elements inside div elements that are children of a dl element.
</dd>
<dt> <dt>
Content model: Content model:
</dt> </dt>
<dd> <dd>
Flow content, but with no header, footer, sectioning content, or heading content descendants. Flow content, but with no header, footer, sectioning content, or heading content descendants.
</dd> </dd>
<dt> <dt>
Tag omission in text/html: Tag omission in text/html:
</dt> </dt>
<dd> <dd>
A dt element's end tag can be omitted if the dt element is immediately followed by another dt element or a dd element. A dt elements end tag may be omitted if the dt element is immediately followed by another dt element or a dd element.
</dd> </dd>
<dt> <dt>
Content attributes: Content attributes:
</dt> </dt>
<dd> <dd>
Global attributes Global attributes
</dd> </dd>
<dt>
Allowed ARIA role attribute values:
</dt>
<dd>
None.
</dd>
<dt>
Allowed ARIA state and property attributes:
</dt>
<dd>
Global aria-* attributes
</dd>
<dd>
Any aria-* attributes None
</dd>
<dt><dt>
DOM interface: DOM interface:
</dt> </dt>
<dd> <dd>
Uses HTMLElement. Uses HTMLElement.
</dd> </dd>
</dl></dl>
<p>The dt element represents the term, or name, part of a term-description group in a description list (dl element).</p><p>The dt element represents a term, part of a term-description group in a description list (dl element).</p>
<p class="note">The dt element itself, when used in a dl element, does not indicate that its contents are a term being defined, but this can be indicated using the dfn element.</p>
<div class="example"><div class="example">
<p>This example shows a list of frequently asked questions (a FAQ) marked up using the dt element for questions and the dd element for answers.</p> <p>In this example the dt elements represent questions and the dd elements the answers:</p>
<pre>&lt;article&gt; <pre>&lt;dl&gt;
&lt;h1&gt;FAQ&lt;/h1&gt; &lt;dt&gt;What is my favorite drink?&lt;/dt&gt;
&lt;dl&gt; &lt;dd&gt;Tea&lt;/dd&gt;
&lt;dt&gt;What do we want?&lt;/dt&gt; &lt;dt&gt;What is my favorite food?&lt;/dt&gt;
&lt;dd&gt;Our data.&lt;/dd&gt; &lt;dd&gt;Sushi&lt;/dd&gt;
&lt;dt&gt;When do we want it?&lt;/dt&gt; &lt;dt&gt;What is my favourite film?&lt;/dt&gt;
&lt;dd&gt;Now.&lt;/dd&gt; &lt;dd&gt;What a Wonderful Life&lt;/dd&gt;
&lt;dt&gt;Where is it?&lt;/dt&gt;&lt;/dl&gt;</pre>
&lt;dd&gt;We are not sure.&lt;/dd&gt;</div>
&lt;/dl&gt;<p class="note">When used within a dl element, the dt element does not necessarily represent a term being defined. The dfn element should be used to represent a term being defined.</p>
&lt;/article&gt;</pre><div class="example">
<p>In this example the dfn element indicates that the dt element contains a defined term, the definition for which is represented by the dd element:</p>
<pre>&lt;dl&gt;
&lt;dt lang="en-us"&gt;&lt;dfn&gt;Color&lt;/dfn&gt;&lt;/dt&gt;
&lt;dt lang="en-gb"&gt;&lt;dfn&gt;Colour&lt;/dfn&gt;&lt;/dt&gt;
&lt;dd&gt;A sensation which (in humans) derives from the ability of the fine structure of the eye to distinguish three differently filtered analyses of a view.&lt;/dd&gt;
&lt;/dl&gt;</pre>
</div></div>

Navigation

Legends:

WHATWG HTML Standard

A section available at WHATWG HTML Standard.

W3C HTML

A section available at W3C HTML.

Previous section
WHATWG HTML StandardW3C HTMLThe dl element
Next section
WHATWG HTML StandardW3C HTMLThe dd element