Live Preview
A simple term with its description:
- CSS
- Cascading Style Sheets for styling web pages.

By the end of this tutorial, you’ll use the <dt> element correctly inside description lists for glossaries, FAQs, and metadata.
Understanding HTML list elements helps you structure content clearly. The <dt> tag plays a key role in description lists—together with <dl> and <dd>, it presents terms and their matching definitions in a semantic, accessible way.
Write valid <dt> terms inside a dl container.
Understand how terms pair with descriptions in description lists.
Know why dt cannot be used outside a description list.
Use dt for term labels and FAQ-style questions.
Style description terms with classes and typography.
Apply accessibility best practices for term–description markup.
<dt> Tag?The <dt> element represents a term or name in an HTML description list. Browsers typically render dt in bold by default. Each dt should be followed by one or more <dd> elements that describe it.
dt stands for description term. It names the keyword, label, or question—the dd element provides the matching detail or answer.
Always nest dt inside dl. Using it alone breaks the semantic meaning of description lists and produces invalid HTML.
Place <dt> inside <dl>, followed by its matching <dd>:
<dl>
<dt>Your Term Here</dt>
<dd>Description for the term</dd>
</dl><dt> must be a direct or indirect child of <dl>.dt should be followed by at least one dd element.dd before dt.class and id to style individual terms.| Feature | Syntax / Rule | Notes |
|---|---|---|
| Stands for | Description term | HTML5 name for dt |
| Tag-specific attrs | None | Global attributes apply |
| Required parent | dl | Cannot be used alone |
| Pairs with | dd | Term before description |
| Default style | Bold | Browsers emphasize terms |
| Use cases | Glossary, FAQ, metadata | Term labels and questions |
<dt> vs <dd>These sibling elements work together inside a description list:
| Element | Role | Content |
|---|---|---|
<dt> | Term | Name, label, keyword, or question |
<dd> | Description | Explanation, value, or answer |
| Order | dt first | Term always comes before its description(s) |
| Container | dl | Both live inside the description list |
<dl>, <dt>, and <dd>The three elements form a complete description list structure:
| Element | Role | When to use |
|---|---|---|
<dl> | Container | Wraps the whole description list |
<dt> | Term | What you are naming or asking |
<dd> | Description | What the term means or the answer |
| HTML5 name | Description list | Not only dictionary definitions |
The <dt> tag has no tag-specific attributes. Style terms with global attributes such as class and id:
class GlobalCSS hook for styling description terms consistently across a glossary.
class="highlight"style GlobalInline CSS for one-off term styling—prefer classes for reusable design.
style="color: #0066cc;"id GlobalUnique identifier so links can jump to a specific term definition.
id="def-html"lang GlobalLanguage of the term when it differs from the document language.
lang="fr"title GlobalAdvisory tooltip for expanded context on abbreviated terms.
title="HyperText Markup Language"<dl>
<dt class="highlight" style="color: #0066cc;">Your Styled Term Here</dt>
<dd>Matching description for the term.</dd>
</dl>Style dt with CSS for visual emphasis—but use it for semantic term labeling, not as a bold-text shortcut.
Basic terms, multiple dt/dd pairs, styled terms, and FAQ-style questions with copy-ready code and live previews.
A simple term with its description:
A single dt term with one matching dd description.
<dl>
<dt>HTML</dt>
<dd>HyperText Markup Language for structuring web pages.</dd>
</dl>Use <dt> to label terms in glossaries, FAQ questions, product specification names, author and publish metadata keys, API field names, and any content where a clear label needs a matching description.
Several dt/dd pairs inside one dl element.
<dl>
<dt>Term 1</dt>
<dd>Definition for Term 1</dd>
<dt>Term 2</dt>
<dd>Definition for Term 2</dd>
</dl>Apply a CSS class to dt elements for consistent visual emphasis.
<dl>
<dt class="highlight">Styled Term 1</dt>
<dd>Definition for Styled Term 1</dd>
<dt class="highlight">Styled Term 2</dt>
<dd>Definition for Styled Term 2</dd>
</dl>Use dt for questions and dd for answers in a simple FAQ list.
<dl>
<dt>What is HTML?</dt>
<dd>A markup language for structuring web content.</dd>
<dt>What is CSS?</dt>
<dd>A stylesheet language for visual design.</dd>
</dl>Browsers render dt in bold by default. Customize description terms with font weight, color, and spacing:
font-weight Bold terms by defaultcolor Highlight glossary termsmargin-top Space between term groupsfont-size FAQ question sizing/* Description term styling */
dt {
font-weight: 600;
color: #0f172a;
}
dt.highlight {
color: #0066cc;
}
dl.faq dt {
margin-top: 0.75rem;
font-size: 1rem;
}Live styled description term
Semantic description lists help assistive technologies understand term–description relationships:
Wrap term–description groups in dl.
Add the keyword, label, or question with dt.
One or more dd elements explain the term.
Organized terms with matching descriptions for users and assistive tech.
The <dt> element is fully supported in all browsers, including legacy Internet Explorer.
From legacy Internet Explorer to the latest mobile browsers — the dt element is fully supported inside description lists.
Bottom line: Ship semantic description terms with confidence. The <dt> element is safe to use in every production environment today.
The <dt> tag names terms in HTML description lists. Combined with <dl> and <dd>, it creates clear glossaries, FAQs, and metadata—use it for semantic labeling, not layout.
dt inside dldt with at least one dddt outside a dl elementdt only for bold text stylingdd before its dtdt with heading tags<dt>Bookmark these before you ship — they’ll keep your description list markup semantic and accessible.
<dt> names the term or label in a description list.
dt must be a child of a description list.
Each term is followed by one or more descriptions.
PatternTerm always comes before its description(s).
OrderUse global class and id for styling.
Works in every browser, including legacy IE.
Compatibilitydd inside dl for glossaries, FAQs, and metadata.dt is the term or label. dd is the description or value that explains it.dt must be a child of dl. Using it alone is invalid HTML.dl element.dd elements can follow a single dt when one term needs multiple details.Practice dl, dt, and dd in the interactive HTML editor.
6 people found this page helpful