Encodera

Thanks for reading!

Donate to the site — we work hard for you.

HTML & CSS reference

<dfn>

Marks the term that is being defined in this sentence or paragraph.

Syntax

<p><dfn>Term</dfn> is …</p>

Attributes

ParameterTypeDescription
titletextOptional. The exact term, if the text inside differs (for example, it is an abbreviation).
idtextOptional. 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

  • <abbr> — An abbreviation or acronym with its full form.
  • <dl> — A description list: terms `<dt>` and their descriptions `<dd>`.
  • <em> — Stress emphasis in a sentence; shown in italics by default.
  • id — A unique identifier of an element on the page.

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.

Thanks for reading!

Donate to the site — we work hard for you.