WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <dfn> Tag


Example

Mark up the defining instance of a term:

<p><dfn>HTML</dfn> is the standard markup language for creating web pages.</p>
Try it yourself »

Definition and Usage

<dfn> A label is a phrase label that defines a definition item.

Tip: We do not object to the use of this tag, but if you use this tag just to achieve a certain visual effect, we recommend that you use CSS, which may achieve richer effects .

All phrase tags:

tag description
<em> Rendered as emphasized text.
<strong> Defines important text.
<dfn> Define a definition item.
<code> Defines computer code text.
<samp> Defines sample text.
<kbd> Defines keyboard text. It indicates that the text was typed from the keyboard. It is often used in computer-related documents or manuals.
<var> Define variables. You can compare this tag with<pre> and <code> Labels work together.

Example

<p><dfn>HTML</dfn> is the standard markup language for creating web pages.</p>
Try it yourself »

2. The title attribute of the <dfn> tag:

Example

<p><dfn title="HyperText Markup Language">HTML</dfn> is the standard markup language for creating web pages.</p>
Try it yourself »

3. The title attribute of an <abbr> tag inside the <dfn> element:

Example

<p><dfn><abbr title="HyperText Markup Language">HTML</abbr></dfn> is the standard markup language for creating web pages.</p>
Try it yourself »

You can also add an id attribute to the <dfn> element. Then, whenever a term is used, it can refer back to the definition using an <a> tag:

Example

<p><dfn id="html-def">HTML</dfn> is the standard markup language for creating web pages.</p>

<p>This is some text...</p>
<p>This is some text...</p>
<p>Learn <a href="#html-def">HTML</a> now.</p>
Try it yourself »

Browser Support

Element
<dfn> Yes Yes Yes Yes Yes Yes

Differences Between HTML 4.01 and HTML5

NONE.