totn HTML

HTML: <dfn> tag

This HTML tutorial explains how to use the HTML element called the <dfn> tag with syntax and examples.

Description

The HTML <dfn> tag is used to mark a term that is being defined in the document. The definition for the term must be found within the parent of the <dfn> tag. Browsers traditionally render the text found within the <dfn> tag as italicized text. This tag is also commonly referred to as the <dfn> element.

Syntax

In HTML, the syntax for the <dfn> tag is:

<body>
<p><dfn>HTML</dfn> is the technology used to create web pages.</p>
</body>

Sample Output


Attributes

Only the Global Attributes apply to the <dfn> tag. There are no attributes that are specific to the <dfn> tag.

Note

  • The HTML <dfn> element is found within the <body> tag.
  • The <dfn> tag is used to signify that the term found within the <dfn> tag is being defined within the current context. Browsers traditionally format the text found within the <dfn> tag in italics. You can change this behavior with CSS.

Browser Compatibility

The <dfn> tag has basic support with the following browsers:

  • Chrome
  • Android
  • Firefox (Gecko)
  • Firefox Mobile (Gecko)
  • Internet Explorer (IE)
  • Edge Mobile
  • Opera
  • Opera Mobile
  • Safari (WebKit)
  • Safari Mobile

Example

We will discuss the <dfn> tag below, exploring examples of how to use the <dfn> tag in HTML5, HTML 4.01 Transitional, XHTML 1.0 Transitional, XHTML 1.0 Strict, and XHTML 1.1.