<dfn>
Marks the term that is being defined in this sentence or paragraph.
Syntax
<p><dfn>Term</dfn> is …</p>Attributes
| Parameter | Type | Description |
|---|---|---|
| title | text | Optional. The exact term, if the text inside differs (for example, it is an abbreviation). |
| id | text | Optional. Lets other places link to the definition. |
Examples
A definition in running text; other mentions link to it:
<p>A <dfn id="def-pixel">pixel</dfn> is the smallest dot of color on a screen.</p>
<p>Images are measured in <a href="#def-pixel">pixels</a>.</p>With an abbreviation inside:
<p><dfn><abbr title="Cascading Style Sheets">CSS</abbr></dfn> is the language that describes how a page looks.</p>Notes
Use <dfn> once per term — at the place where it is defined, not at every mention. The paragraph, <dt>/<dd> pair or section around it must contain the definition. Browsers show it in italics by default.
See also
In the tutorial
- Text formatting — Inline tags for text — strong and em, mark, del and ins, sub and sup, code, kbd and pre, abbr and q.