Summary
The HTML <dt>
element (or HTML Definition Term Element) 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.
- Content categories None.
- Permitted content{{todo}} Flow content, but with no {{HTMLElement("header")}}, {{HTMLElement("footer")}}, sectioning content or heading content descendants.
- 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 Before a {{HTMLElement("dt")}} or a {{HTMLElement("dd")}} element, inside a {{HTMLElement("dl")}}.
- DOM interface {{domxref("HTMLElement")}} Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the HTMLSpanElement interface for this element.
Attributes
This element only includes the global attributes.
Example
For example see definition list.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', 'grouping-content.html#the-dt-element', '<dt>')}} | {{Spec2('HTML WHATWG')}} | |
{{SpecName('HTML5 W3C', 'grouping-content.html#the-dt-element', '<dt>')}} | {{Spec2('HTML5 W3C')}} | |
{{SpecName('HTML4.01', 'struct/lists.html#h-10.3', '<dt>')}} | {{Spec2('HTML4.01')}} |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 1.0 | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
See also
- {{HTMLElement("dd")}}, {{HTMLElement("dl")}}
{{HTMLRef}}