Code has been added to clipboard!

HTML dfn Tag

Reading time 2 min
Published Jul 19, 2017
Updated Oct 2, 2019

HTML dfn Tag: Main Tips

  • The dfn tag is used to indicate a defined term.
  • dfn stands for definition.
  • This tag supports global attributes.

Usage of HTML Definition Tag

The HTML dfn tag represents a term that needs and has an explanation. It is usually used when a specific term first occurs in a page.

Example
<p>
  <dfn>CSS</dfn> is the styling language for HTML.
</p>

The term definition can be provided by a <p> element, a pair of <dt> and <dd> elements, or a <section> which the <dfn> element is a child of.

Most Common Attributes

When using the HTML definition tag, you can also include a title attribute. Its value will then be considered to be the defined term, and shown when you hover your mouse over the <dfn> element:

Example
<p>
  <dfn title="Cascading Style Sheet">CSS</dfn> is the styling language for HTML.
</p>

Note: if your dfn HTML tag has no title attribute, all it will do is specify where the defined term is in the definition.

You can also add an id attribute to the <dfn> element. Then, whenever a term is used, you can refer back to the definition using the <a> tag. This is handy when you use the same term, and want to remind the reader what it means:

Example
<p><dfn id="css-def">CSS</dfn> is the styling language for HTML.</p>
<p>This is a paragraph</p>
<p>This is a paragraph</p>
<p>Learn <a href="#css-def">CSS</a> now.</p>

Browser support

Chrome
All
Edge
All
Firefox
1+
IE
All
Opera
All
Safari
All

Mobile browser support

Chrome
All
Firefox
4+
Opera
All
Safari
All
Basics
Introduction
Syntax
Editors
Basic Examples
Head Section
<!DOCTYPE>
Tags and Elements
Semantic Elements
Tags Reference
Attributes
Comments
Block and Inline Elements
Forms
Form Elements
Input
Responsive Web Design
Inline Scripts
Uniform Resource Locator
Redirect
XHTML
Geolocation
Drag and Drop
Local Storage
Web Workers
Server-Sent Events
Character Encoding
Text Formatting
Quotation and Citation Elements
Headings
Paragraphs
Links
Tables
Lists
Symbols
Space
Tab
Styles
Computer Code
Layout
Classes
Colors
Images
iframes
Audio Player
Video Player
YouTube Videos
Multimedia
Canvas
SVG
<!-- -->
<a>
<abbr>
<acronym> DEPRECATED
<address>
<applet> DEPRECATED
<article>
<aside>
<audio>
<b>
<base>
<basefont> DEPRECATED
<bdi>
<bdo>
<big> DEPRECATED
<blink> DEPRECATED
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<center> DEPRECATED
<cite>
<code>
<col>
<colgroup>
<datalist>
<dd>
<del>
<details>
<dfn>
<dialog>
<dir> DEPRECATED
<div>
<dl>
<dt>
<em>
<embed>
<fieldset>
<figcaption>
<figure>
<font> DEPRECATED
<footer>
<form>
<frame> DEPRECATED
<frameset> DEPRECATED
<h1> – <h6>
<head>
<header>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<keygen> DEPRECATED
<label>
<legend>
<li>
<link>
<main>
<map>
<mark>
<menu>
<menuitem> DEPRECATED
<meta>
<meter>
<nav>
<noframes> DEPRECATED
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike> DEPRECATED
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt> DEPRECATED
<u>
<ul>
<var>
<video>
<wbr>