Inline
HTML 3.2
The definition element marks the defining instance of a term - the first time a term is introduced and explained in a document.
<dfn>term being defined</dfn>
The <dfn> element is typically rendered in italic by default, indicating the term is being defined.
The title attribute can provide additional context:
Link to definitions from other parts of the document:
The browser determines the term being defined in this order:
- The
title attribute on <dfn> itself
- The
title attribute on an <abbr> inside <dfn>
- The text content of the
<dfn> element
Customize the appearance of definitions:
Mark only the defining instance, not subsequent uses:
<p>A <dfn>variable</dfn> is a container for storing data.</p>
<p>You can change a variable's value at any time.</p>
<p>A <dfn>variable</dfn> is a container for storing data.</p>
<p>You can change a <dfn>variable's</dfn> value at any time.</p>
Screen readers typically read <dfn> as regular text, but the semantic meaning helps structure the content.
Make sure the definition is clear:
<p><dfn>Cache</dfn> stores data.</p>
<p>A <dfn>cache</dfn> is temporary storage that saves frequently accessed data for faster retrieval.</p>
For enhanced accessibility in glossaries:
<dt><dfn id="term-api">API</dfn></dt>
<dd>Application Programming Interface</dd>
| Browser | Version | Notes |
|---|
| Chrome | 1+ | Full support |
| Firefox | 1+ | Full support |
| Safari | 1+ | Full support |
| Edge | 12+ | Full support |
| IE | 3+ | Full support |
The <dfn> element has been supported since the earliest browsers.