Example

A simple <dfn> tag:

Laboratory

description & Usage

<dfn> stands for definintion and is used to define terminology.

Within the <dfn> tag you define a term, and in the parent tag you elaborate on that term.

Typically <dfn> tags are used in the following ways:

  • simply:
<p><dfn>HTML</dfn> is the standard markup language for creating web pages.</p>
  • By adding the title attribute:
<p><dfn title="HyperText Markup Language">HTML</dfn> Abbreviation is Hypertext Markup Language.</p>
  • By adding the <abbr> tag:
<p><dfn><abbr title="HyperText Markup Language">HTML</abbr></dfn> Abbreviation is Hypertext Markup Language
  • By adding the id attribute and the <a> tag:
<p><dfn id="html-def">HTML</dfn> is the standard markup language for creating web pages.</p>
<p>Learn <a href="#html-def">HTML</a> now.</p>

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<dfn>

Global Attributes

The <dfn> tag supports the HTML Global Attributes.

Event Attributes

The <dfn> tag supports the HTML Event Attributes.

Default CSS

Most browsers will display the <dfn> tag with the following default style: