<dt>
dt represents a definition term (or, name as defined by HTML 5) in a definition list. The content in this element is restricted to text with inline/phrasing elements.
[Caveats: HTML 4.01, Section 10.3 Definition lists: the DL, DT, and DD elements states “The term is given by the DT element and is restricted to inline content.”; and, HTML 5, Section 4.5.11 The dt element offers “Content model:Phrasing content.” These statements are translated as text content with any presentation elements only: heading, paragraph and preformatted elements are not allowed.]
A definition list must have at least one dt element and it must have at least one dd element. However, any combination may be used. Though, semantic arguments require that the dt element precede the dd value.
- Start tag:
<dt>- End tag:
</dt>
- Example [Basic]:
-
The term is given by the
DTelement and is restricted to inline content.- This statement translates as text content with any presentation elements only, e.g., heading, paragraph and preformatted elements are not allowed.
- Code [HTML]:
-
<dl> <dt><q cite="http://www.w3.org/TR/REC-html40/struct/lists.html#h-10.3"> » The term is given by the <code>DT</code> element and is restricted to inline content.</q></dt> <dd>This statement translates as text content with any presentation elements only, » e.g., <a href="/html-elements/inline/heading-element">heading</a>, » <a href="/html-elements/inline/preformatted-element">paragraph</a> and » <a href="/html-elements/inline/paragraph-element">preformatted</a> » elements are not allowed.</dd> </dl>
</dt>
