HTML dfn tag

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

Example

<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>
Try </>

Specific uses

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

TagsDescription
<a> It links the term to its definition in a page.
<a href="address of external resource/URL">anchor text</a>

Tag omission

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

Global Attributes

All the global attributes are applicable on dfn element.

Specific Attributes

AttributesDescription
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>


Was this article helpful?

 

Email:

Message:

Get the newsletter