A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/elements/dfn below:

dfn · WebPlatform Docs

dfn Summary

The dfn element indicates the defining instance of a term.

Overview Table
DOM Interface
HTMLElement
Examples

This 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.

Notes

If 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 specifications
HTML 5.1
W3C Working Draft
HTML 5
W3C Recommendation
HTML 4.01
W3C Recommendation
See also Related articles HTML Text Other articles Attributions

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