HTML <dt> Tag

Beginner
5 min read
Updated: Oct 2026
4 examples
Live preview

Definition and Usage

The <dt> element marks a term (name) in a <dl> description list. It is usually followed by one or more <dd> elements that describe that term.

Several <dt> tags in a row mean those terms share the next <dd> (or group of <dd>s). Use this for glossaries, FAQs, and metadata labels.

Baseline · Widely available.

Not deprecated and not experimental. Stable across modern browsers since about July 2015.

Parent required.

Place <dt> only inside <dl>, or inside a <div> that is a child of <dl>.

HTML Syntax

syntax.html
<dt> term</dt>

The start tag is required. Prefer writing the end tag too. Content may be flow content, but not headings, <header>, <footer>, or sectioning elements.

Attributes

<dt> has no element-specific attributes. Use globals when you need hooks:

AttributeDescriptionTry it
classStyle or script hook for one or more termsTry it
idUnique target for a specific term (links or scripts)Try it
langLanguage of the term when it differs from surrounding textTry it

Global Attributes

The <dt> tag also supports the Global Attributes in HTML.

Live Preview

Change the term pattern and see how <dt> pairs with <dd>.

<dt> is the term; <dd> is the description.

Description list
HTML
Markup language for web pages.

One term, one description.

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Basic Term and Description

One <dt> followed by one <dd> inside a <dl>.

HTML
<dl>
  <dt>HTML</dt>
  <dd>Markup language for web pages.</dd>
</dl>
Try It Yourself

How It Works

  1. Open a <dl> to hold the description group.
  2. Write the term in <dt> (here: HTML).
  3. Add the meaning in <dd> right after the term.
  4. Close the list with </dl>.

Example 2 — Several Terms, One Description

Stack <dt> elements when synonyms share the same definition.

HTML
<dl>
  <dt>Firefox</dt>
  <dt>Mozilla Firefox</dt>
  <dt>Fx</dt>
  <dd>A free, open-source web browser.</dd>
</dl>
Try It Yourself

How It Works

  1. List each synonym as its own <dt>.
  2. Keep them consecutive before the description.
  3. Write one shared <dd> that defines all of those terms.
  4. Repeat the pattern for the next term group in the same <dl>.

Example 3 — Metadata Label

Use <dt> as the key and <dd> as the value.

HTML
<dl>
  <dt>Author</dt>
  <dd>Mari Selvan M P</dd>

  <dt>Updated</dt>
  <dd>October 2026</dd>
</dl>
Try It Yourself

How It Works

  1. Put the field name in <dt> (Author, Updated).
  2. Put the field value in <dd>.
  3. Keep each pair as one group for clear scanning.
  4. Style with CSS if you want a colon after each term (optional).

Example 4 — Term Group Wrapped in <div>

HTML allows wrapping each dt/dd group in a <div> inside the <dl>.

HTML
<dl>
  <div>
    <dt>CSS</dt>
    <dd>Stylesheet language for presentation.</dd>
  </div>
</dl>
Try It Yourself

How It Works

  1. Keep <dl> as the outer list.
  2. Wrap the term and description in a <div>.
  3. Place <dt> then <dd> inside that wrapper.
  4. Use the wrapper when the whole pair needs one class, id, or microdata hook.

Edge Cases & Pitfalls

Most mistakes put dt in the wrong parent or treat it like a heading.

structure

Must live in a dl

Do not drop a lone <dt> in <body>. Parent must be <dl> (or a <div> inside it).

pairing

Follow with dd

A term without a description is incomplete. After one or more <dt>s, add at least one <dd>.

content

No headings inside

Do not nest <h1>–<h6>, <header>, <footer>, or sectioning content in <dt>.

vs dfn

dt vs dfn

<dfn> marks a defining instance in prose. <dt> is the list term slot. They solve different jobs.

lists

Not for bullet items

For plain item lists use <ul> / <li>. Reserve <dt> for name/description pairs.

Browser Support

The <dt> element is core HTML in every browser. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

<dt>

Widely available since about July 2015 (and long before as part of description lists). Chrome, Firefox, Safari, Edge, and Opera all support it fully.

98% Global support (approx.)
Google Chrome All
Full support
Mozilla Firefox All
Full support
Apple Safari All
Full support
Microsoft Edge All
Full support
Opera All
Full support
Samsung Internet All
Full support
Internet Explorer All
Supported
<dt> Widely supported

Bottom line: Safe to use everywhere inside a valid dl. Pair every term group with dd descriptions.

Key Takeaways

  • Role: <dt> names the term in a <dl> description group.
  • Pairing: follow with <dd>; several <dt>s can share one description.
  • Parent: only inside <dl> (or a <div> child of <dl>).
  • Content: keep terms simple — no headings or sectioning elements inside.

One line: <dt> is the term; <dd> is the description — always inside <dl>.

Default CSS Settings

Typical user-agent styling for the term (exact values can vary by browser):

default.css
dt {
  display: block;
}

dd {
  display: block;
  margin-inline-start: 40px;
}

Many designs add font-weight: bold on dt. Spacing belongs in your stylesheet, not in fake nested lists.

Frequently Asked Questions

The dt element marks a term (name) in a description list. It must live inside a dl, and is normally followed by one or more dd descriptions.
No. A dt belongs in a dl, or in a div that is a direct child of a dl. Outside that structure it is invalid.
Yes. Multiple dt elements in a row are all defined by the following dd (or group of dd elements).
No. dt only supports global attributes such as class, id, and lang.
Flow content is allowed, but not header, footer, sectioning content, or heading elements. Keep terms short and clear.
dt is the term slot in a dl list. dfn marks the defining instance of a term in running prose. You can nest dfn inside dt when useful.

Next: em

Mark text with stress emphasis for meaning, not just italics.

em tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

12 people found this page helpful