HTML <dfn> tag

The <dfn> tag is a phrase tag and is used for indicating a definition. The <dfn> tag surrounds the word/term being defined.

Some browsers render the content inside the <dfn> tag as italic.

Syntax

The <dfn> tag comes in pairs. The content must be written between opening (<dfn>) and closing (</dfn>) tags.

Example

<!DOCTYPE html>
<html>
   <body>
      <p>This is some paragraph.</p>
      <dfn>This is definition text.</dfn>
   </body>
</html>

Result

Recommendation: Use the <dfn> tag with the title attribute to provide an explanation to the user when cursor comes on the word:

Example

<!DOCTYPE html>
<html>
   <body>
      <dfn title="Hyper Text Markup Language">HTML</dfn>  is the standard markup language.
   </body>
</html>

Here is the result (bring your mouse cursor over "HTML"):

See the list of all phrase tags below:

Tag Descriptions
<em> Renders as emphasized text.
<strong> Defines an important text.
<dfn> Defines the definition term.
<code> Defines a computer code piece.
<samp> Defines a sample output from a programming code.
<kbd> Defines the keyboard input.
<var> Defines a variable.

The <dfn> tag also supports the Global Attributes