HTML / HTML Tags

HTML <Dfn> Tag

Dec 12, 2022
2 min read
HTML dfn Tag

Definition

The <dfn> tag is used to specify a term that is defined in the content of your web page.

Example

<p>A <dfn>WYSIWYG</dfn> is a graphical interface that allows you to
modify content on your website without any HTML knowledge.</p>

Usage

  • The nearest ancestor or parent of the <dfn> element must contain the definition of the term given by the <dfn> element.
  • If the <dfn> element has a title attribute then the value of that attribute must match precisely the term being defined.
    <p>A <dfn title="What You See is What You Get">WYSIWYG</dfn> is a graphical interface 
    that allows you to modify content on your website without any HTML knowledge.</p>
  • If the <dfn> element contains a single child <abbr> element that has a title attribute, and no other text, then the <abbr>’s title element is the term being defined.
    <p>A <dfn><abbr title="What You See is What You Get">WYSIWYG</abbr></dfn> is a 
    graphical interface that allows you to modify content on your website without any 
    HTML knowledge.</p>
    See the <abbr> element for more examples of using abbreviations and definitions together.
  • Otherwise, the content of the <dfn> element gives the term being defined.

Attributes

The <dfn> element only supports the Global Attributes.

Specification

Browser Support

Desktop

ChromeEdgeFirefoxIEOperaSafari
YesYesYesYesYesYes

Mobile

Android WebviewChrome AndroidFirefox AndroidOpera AndroidiOS SafariSamsung Internet
YesYesYesYesYesYes