Content · Web Development · HTML

HTML <dfn> Element: Defining a Term

Dfn identifies the word or phrase being defined at that moment. Place it where the definition is actually introduced.

1 views Published Oct 19, 2026 Updated Oct 19, 2026 Admin

Dfn identifies the word or phrase being defined at that moment. Place it where the definition is actually introduced.

What You Need to Know


It does not generate a dictionary by itself; the explanation still needs real words around it.

The goal is not to collect as many tags as possible. Pick the element that best describes what the content really is.

Example: See It in Action


Take a look at this small piece of HTML. You can use it in a practice document and change the text to make it your own.

This is a short HTML fragment. To try it as a webpage, put it inside the body element of a complete HTML document.

<p><dfn>Semantic HTML</dfn> means markup that describes meaning.</p>
<p>Use meaningful elements to show each section's job.</p>
<p>This is where the term is being defined.</p>

Let’s Understand the Example


  • Dfn identifies the term being defined nearby.
  • A p groups a paragraph of related text. Start another paragraph for a new thought.

Look for the text “Semantic HTML” in the page. If the visible result surprises you, inspect the rendered elements to see what the browser actually built.

What Should You See?


The page should include “Semantic HTML”. If it looks different from what you expected, open developer tools and compare the source with the elements the browser created.

Try removing one piece of markup in a scratch copy, refresh the page, and compare the behavior. This is often the fastest way to understand what that piece contributes.

Try It Yourself


  1. Write a one-sentence definition of browser with dfn.
  2. Save your changes, open or refresh the page, and compare the result with the original example.
  3. Tell a friend what your change did. If you are not sure, undo it, refresh the page, and compare.

Common Beginner Mistakes


  • Marking every repeated use of the same term as a new definition.
  • Avoid picking tags just for their default bold, italic or spaced appearance. Use CSS for presentation.

Key Takeaways


  • Dfn identifies the word or phrase being defined at that moment.
  • Dfn identifies the term being defined nearby.
  • It does not generate a dictionary by itself; the explanation still needs real words around it.
Share this resourceSend this page to someone who may find it useful.