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 atitle
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 atitle
attribute, and no other text, then the<abbr>
’s title element is the term being defined.See the<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>
<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
Chrome | Edge | Firefox | IE | Opera | Safari |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |
Mobile
Android Webview | Chrome Android | Firefox Android | Opera Android | iOS Safari | Samsung Internet |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |