Skip to content
Tutorials Center
My learning

Topics

HTML Reference ยท Text Content

The <dt> element

Reference for the HTML <dt> element: the term or name in a description list, how it pairs with <dd>, content rules, tag omission and technical details.

The <dt> element holds the name part of a group in a description list (<dl>): a term, a label or a question. The value or explanation follows in one or more <dd> elements.

HTML
<dl>
  <dt>Kerning</dt>
  <dd>Adjusting the space between two specific letters.</dd>
</dl>

Try it

A small glossary

Two <dt> elements in a row give one value two names. Wrapping the term in <dfn> marks it as the place where the term is defined.

Attributes

This element has no attributes of its own. It accepts the global attributes.

Usage notes

  • Must live in a description list. A <dt> belongs directly inside a <dl>, or inside a <div> that is a child of a <dl>, and comes before the <dd> elements of its group.
  • Keep it short. A term may contain flow content, but not headings, <header>, <footer> or sectioning elements such as <article> and <section>.
  • Not bold by default. Browsers render <dt> as plain text; add font-weight with CSS if you want terms to stand out.
  • Optional end tag. The parser closes a <dt> automatically when the next <dt> or <dd> starts. Writing the end tag anyway keeps your markup easier to read.

Technical summary

Content categories None
Permitted content Flow content, but no <header>, <footer>, sectioning content or heading content descendants
Tag omission Start tag required. The end tag may be omitted if the element is immediately followed by another <dt> or a <dd>
Permitted parents A <dl>, or a <div> that is a child of a <dl>; it must come before a <dt> or <dd>
Implicit ARIA role term
DOM interface HTMLElement
Default display block

Browser support

Supported in every browser.