This website uses cookies

We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you've provided to them or that they've collected from your use of their services. Please read more at our privacy policy page.



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