HTML5 <dfn> Tag

The HTML <dfn> tag is used to represent the defining instance of a term.

The only content permitted inside this element is phrasing content, but there should be no <dfn> element as its descendant. Both the starting and ending tag are mandatory for this element. The parent of the <dfn> tag can be any element that accepts phrasing content.

The <dfn> element marks the term being defined. The definition of the term should be given by the surrounding <p>, <section> or definition list group (usually a <dt>, <dd> pair).

The exact value of the term being defined is determined by the following rules:

  1. If the <dfn> element has a title attribute, then the term being defined is the value of that attribute.
  2. Else, if it contains only an <abbr> element with a title attribute, then the term is the value of that attribute.
  3. Otherwise, the text content of the <dfn> element is the term being defined.

The following style is applied to this element by default:

dfn {
  font-style: italic;
}

Attributes

This element only accepts global attributes.

Reader Comments

1. You can register or login to post a comment. Asking readers to register improves the quality of discussion.

2. As a registered user, you will also get to access features like choosing between a light and dark theme or anything else that we might implement in future.

Follow Us For Updates

FacebookTwitterGoogle+
Go To Top