HTML <dfn> Tag

The <dfn> tag is used to define the term, that is mentioned for the first time. In the browser, the content of the tag is shown in italic.

Syntax

The <dfn> tag comes in pairs; the content is written between the opening (<dfn>) and the closing (</dfn>) tags.

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <p><dfn>HTML</dfn> (HyperText Markup Language ) — The standardized markup language for documents on the World Wide Web. Most web pages contain a description of the markup in the language HTML</p>
  </body>
</html>

Result

The <dfn> element has a title attribute, the value of the title attribute is considered to be the term being defined.

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
        <p>Mouse over to see the definition.</p>
        <dfn title="HyperText Markup Language">HTML</dfn>
  </body>
</html>

Result


Mouse over to see the definition.

HTML

Attributes

Attribute Value Description
title Specifies the definition of a term (shown when hovering).

The <dfn> tag also supports the Global Attributes and the Event Attributes.

Browser support




Related articles