HTML <dt> Tag

Definition
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>.
Syntax
HTML Syntax
The start tag is required. Prefer writing the end tag too. Content may be flow content, but not headings, <header>, <footer>, or sectioning elements.
Reference
Attributes
<dt> has no element-specific attributes. Use globals when you need hooks:
| Attribute | Description | Try it |
|---|
class | Style or script hook for one or more terms | Try it |
id | Unique target for a specific term (links or scripts) | Try it |
lang | Language of the term when it differs from surrounding text | Try it |
Try it
Live Preview
Change the term pattern and see how <dt> pairs with <dd>.
Code
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>.
<dl>
<dt>HTML</dt>
<dd>Markup language for web pages.</dd>
</dl>
- HTML
- Markup language for web pages.
How It Works
- Open a
<dl> to hold the description group. - Write the term in
<dt> (here: HTML). - Add the meaning in
<dd> right after the term. - Close the list with
</dl>.
Example 2 — Several Terms, One Description
Stack <dt> elements when synonyms share the same definition.
<dl>
<dt>Firefox</dt>
<dt>Mozilla Firefox</dt>
<dt>Fx</dt>
<dd>A free, open-source web browser.</dd>
</dl>
- Firefox
- Mozilla Firefox
- Fx
- A free, open-source web browser.
How It Works
- List each synonym as its own
<dt>. - Keep them consecutive before the description.
- Write one shared
<dd> that defines all of those terms. - 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.
<dl>
<dt>Author</dt>
<dd>Mari Selvan M P</dd>
<dt>Updated</dt>
<dd>October 2026</dd>
</dl>
How It Works
- Put the field name in
<dt> (Author, Updated). - Put the field value in
<dd>. - Keep each pair as one group for clear scanning.
- 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>.
<dl>
<div>
<dt>CSS</dt>
<dd>Stylesheet language for presentation.</dd>
</div>
</dl>
- CSS
- Stylesheet language for presentation.
How It Works
- Keep
<dl> as the outer list. - Wrap the term and description in a
<div>. - Place
<dt> then <dd> inside that wrapper. - 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.
structureMust live in a dl
Do not drop a lone <dt> in <body>. Parent must be <dl> (or a <div> inside it).
pairingFollow with dd
A term without a description is incomplete. After one or more <dt>s, add at least one <dd>.
contentNo headings inside
Do not nest <h1>–<h6>, <header>, <footer>, or sectioning content in <dt>.
vs dfndt vs dfn
<dfn> marks a defining instance in prose. <dt> is the list term slot. They solve different jobs.
listsNot for bullet items
For plain item lists use <ul> / <li>. Reserve <dt> for name/description pairs.
Compatibility
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.
Remember
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>.
UA style
Default CSS Settings
Typical user-agent styling for the term (exact values can vary by browser):
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
Developer, cloud engineer, and technical writer
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