HTML dfn tag

HTML dfn element represents the explanation example of some term. It referes the term to its definition in the same page.

<p>The <dfn id="ww"> WWW </dfn> is an information space where documents and other web resources are identified by Uniform Resource Locators (URLs), interlinked by hypertext links, and can be accessed via the Internet.</p>



<p>The <a href="#ww">WWW</a> has been central to the development of the Information Age and is the primary tool billions of people use to interact on the Internet.</p>
</>

The WWW is an information space where documents and other web resources are identified by Uniform Resource Locators (URLs), interlinked by hypertext links, and can be accessed via the Internet.

The WWW has been central to the development of the Information Age and is the primary tool billions of people use to interact on the Internet.

Tag Uses

Specific uses of <dfn> tag

It is used to access the definition of some term in a page. See example above.

Tag omission

Both opening and closing tags are necessary for the dfn element.

Global Attributes

All the global attributes are applicable on dfn element.

Tag Attributes

Attributes that are applicable to <dfn> tag
id

It represents a specific id form the dfn element.

<dfn id="html">Hyper Text Markup Language</dfn> <a href="#html">HTML</a>
href

contains the value of the address (id) of the dfn element to access definition.

<dfn id="html">Hyper Text Markup Language</dfn> <a href="#html">HTML</a>
<a>


Was this article helpful?