The <dfn> element marks the term being defined. Put it inside a complete definition statement — usually a paragraph, a <dt> / <dd> pair, or a nearby section that explains the term.
Give it an id so later mentions can link back with <a href="#…">. Pair with <abbr> when the defined term is shown as an abbreviation.
Baseline · Widely available.
Not deprecated. Stable across browsers since about July 2015 (and much earlier in practice).
Special title.
If <dfn> has a title, that value is the term being defined and must contain only that term (MDN / HTML).
Syntax
HTML Syntax
syntax.html
<dfn>term</dfn>
Both start and end tags are required. Content is phrasing content; do not nest another <dfn> inside. The implicit ARIA role is term.
Reference
Attributes
<dfn> has no tag-specific attributes beyond globals. These globals matter most in practice:
A validator is a program that checks for syntax errors in code or documents.
How It Works
Write a full definition sentence (not just the word alone).
Wrap the term in <dfn>…</dfn>.
Leave the explanation as normal text around it.
Without title, the text inside <dfn> is the term being defined.
Example 2 — Link Back to the Definition
Add an id on <dfn>, then link later mentions to it.
HTML
<p>
A <dfn id="def-validator">validator</dfn> checks
for syntax errors in code or documents.
</p>
<p>
Run the <a href="#def-validator">validator</a>
before you deploy.
</p>
Put the term in <dt> and wrap it with <dfn> if this is the defining instance.
Explain it in <dd>.
Use this for glossaries; use a paragraph <dfn> for inline definitions in prose.
Edge Cases & Pitfalls
Most mistakes wrap every mention in <dfn> or confuse it with <abbr>.
semantics
One defining instance
Mark the place where the term is defined. Later uses are normal text (or links), not more <dfn> tags.
context
Needs a real definition nearby
The definition lives in the surrounding paragraph, dt/dd, or section — not in the empty tag alone.
title
title must be the term only
If you set title on <dfn>, put the term there and nothing else.
nesting
No nested dfn
A <dfn> must not contain another <dfn>.
vs abbr
dfn ≠ abbr
<abbr> is for short forms; <dfn> is for the defining occurrence of a term. Combine them when both apply.
Compatibility
Browser Support
The <dfn> element is core HTML in every browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
<dfn>
Widely available since about July 2015 (and long before). Chrome, Firefox, Safari, Edge, and Opera all support dfn. Default italic styling is common but not required by authors.
98%Global support (approx.)
Google ChromeAll
Full support
Mozilla FirefoxAll
Full support
Apple SafariAll
Full support
Microsoft EdgeAll
Full support
OperaAll
Full support
Samsung InternetAll
Full support
Internet ExplorerAll
Supported
<dfn>Widely supported
Bottom line: Safe everywhere for semantic term definitions. Focus on correct placement in a definition sentence, not on browser quirks.
Remember
Key Takeaways
Role: marks the term being defined in a full definition statement.
Links: add id and point later uses with <a href="#…">.
Combo: nest <abbr> when the defined term is an abbreviation.
Restraint: one defining <dfn> per term in that context — not every mention.
One line:<dfn> highlights where a term is defined — keep the full explanation in the surrounding text.
UA style
Default CSS Settings
Many browsers italicize defined terms by default:
default.css
dfn {
font-style: italic;
}
Override with your own CSS if italics clash with design. Keep a visible cue if readers benefit from spotting definitions.
Frequently Asked Questions
The dfn element marks the term being defined. Place it inside a full definition sentence or phrase — often a paragraph, a dt/dd pair, or a section that explains the term.
No. Without title, the text inside dfn is the term. If you set title, that value is the term being defined and must contain only that term (useful when the visible text is an abbreviation).
abbr marks an abbreviation or acronym. dfn marks the defining occurrence of a term. You can nest abbr inside dfn when the defined term is shown as an abbreviation.
Give the dfn an id, then link with <a href="#that-id">. Use that for later mentions of the term so readers can jump to the definition.
No. A dfn must not contain another dfn. Keep one defining instance per term in that context.
Related idea, different tools. dt is a term in a dl list; dfn marks a term inside a definition sentence. You can use dfn inside dt when helpful.