The dfn element indicates the defining instance of a term.
Overview TableThis example uses the dfn element to indicate the defining instance of a new term.
<p>The <dfn title="Garage Door Opener">GDO</dfn>
is a device that allows off-world teams to open the iris.</p>
This example uses the dfn element to indicate the defining instance of a new term that is an abbreviation.
<p>The <dfn><abbr title="Garage Door Opener">GDO</abbr></dfn>
is a device that allows off-world teams to open the iris.</p>
<p>Teal'c activated his <abbr>GDO</abbr>
and so Hammond ordered the iris to be opened.</p>
This example uses the dfn element to indicate the defining instance of a new term and then uses an anchor to provide a reference to that instance.
<p>The <dfn id="dfn-gdo"><abbr title="Garage Door Opener">GDO</abbr></dfn>
is a device that allows off-world teams to open the iris.</p>
<p>Teal'c activated his <a href="#dfn-gdo"><abbr>GDO</abbr></a>
and so Hammond ordered the iris to be opened.</p>
Usage
The dfn is a phrasing-level element and can’t contain block-level elements, but it can contain other phrasing type elements like abbr, read on…
If the dfn element has a title attribute, then the value of that attribute serves as the definition for the text inside the element (see Example 1).
If the dfn contains exactly one child element (and no other text) //and// that child element is an abbr element with a title attribute, then the exact value of that title attribute serves as the definition for the text inside the abbr (see Example 2).
If the dfn only contains text, the exact text content of the element gives the term being defined.
If the title attribute of the dfn element is present, then it must contain only the definition of the term being defined.
NotesIf given an id attribute, a dfn may serve as a reference for other elements on the page by anchoring to the dfn (see Example 3).
Related specificationsdfn
dfn
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4