Skip to content

14. dfn Element

The <dfn> element represents the defining instance of a term. It’s used to mark the first occurrence of a term that is being defined, typically in a glossary or when introducing new terminology. The dfn element helps identify term definitions and improves semantic meaning.

<p>The <dfn>HTML</dfn> (HyperText Markup Language) is a markup language.</p>
<p>
<dfn>Semantic HTML</dfn> is HTML that uses elements to convey meaning.
</p>

Combine with abbreviation:

<p>
<dfn><abbr title="HyperText Markup Language">HTML</abbr></dfn>
is a markup language.
</p>
<dl>
<dt><dfn>HTML</dfn></dt>
<dd>HyperText Markup Language</dd>
</dl>

Use dfn for the first defining instance:

<!-- Good: First occurrence -->
<p>The <dfn>term</dfn> is defined here.</p>
<p>Later uses of the term don't need dfn.</p>
<!-- Avoid: Multiple dfn for same term -->
<p>The <dfn>term</dfn> is defined.</p>
<p>The <dfn>term</dfn> is used again.</p>