CSS Portal

HTML <dfn> Tag

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The <dfn> element in HTML is used to indicate the defining instance of a term. Essentially, it marks a word or phrase that is being defined within the context of the surrounding content. This element is particularly useful in documentation, glossaries, tutorials, or any content where a term needs to be introduced and clarified for readers.

When a term is wrapped in a <dfn> tag, it signals to browsers, assistive technologies, and search engines that the enclosed text represents a formal definition. This can improve semantic understanding of your content and potentially enhance accessibility. Additionally, by default, <dfn> is an inline element, meaning it does not create a line break before or after the term, allowing it to integrate seamlessly into paragraphs or sentences.

A common pattern is to pair <dfn> with an <abbr> or <span> element elsewhere in the text to create references or explanations, although this is optional. Typically, the first occurrence of a term is wrapped in <dfn> to indicate its definition, while subsequent uses may simply use normal text.

Example usage:

<p><dfn>HTML</dfn> stands for HyperText Markup Language and is the standard language for creating web pages.</p>

In this example, the <dfn> tag highlights “HTML” as the term being defined, making it semantically clear that this is the definition of that term.

Properties

Permitted Parents
Any element that accepts phrasing content
Content
Inline and text
Start/End Tags
Start tag: required, End tag: required

Example

<dfn>Definition</dfn>: To define the meaning of a word, phrase or term.

Attributes

None

Global Attributes

The <dfn> tag also supports the Global Attributes in HTML5

Event Attributes

The <dfn> tag also supports the Event Attributes in HTML5

Browser Support

The following information will show you the current browser support for the HTML <dfn> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 26th December 2025

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!