HTML <dfn> Tag
Definition and usage
<dfn>
The tag represents 'definition element', used to specify terms to be defined in the content.
<dfn>
The nearest parent tag of the tag must also contain the definition/explanation of the term.
<dfn>
The term within the tag can be any of the following:
1. That is, <dfn>
The content of the element:
<p><dfn>HTML</dfn> is the standard markup language used to create web pages.</p>
2. Or add title
Properties:
<p><dfn title="HyperText Markup Language">HTML</dfn> is the standard markup language used to create web pages.</p>
3. Or in <dfn>
Used within an element <abbr>
Tags:
<p><dfn><abbr title="HyperText Markup Language">HTML</abbr></dfn> is the standard markup language used to create web pages.</p>
4. Or add id
Properties. Then, every time the term is used, it can be used <a>
Reference to definition:
<p><dfn id="html-def">HTML</dfn> is the standard markup language used to create web pages.</p> <p>Here is some text...</p> <p>Here is some text...</p> <p>Learn <a href="#html-def">HTML</a> now.</p>
See also:
HTML tutorial:HTML reference element
HTML DOM reference manual:DFN object
Example
Mark a term with <dfn>:
<p><dfn>HTML</dfn> is the standard markup language used to create web pages.</p>
Global attributes
<dfn>
The tag also supports Global attributes in HTML.
event attributes
<dfn>
The tag also supports Event attributes in HTML.
Default CSS settings
Most browsers will display the following default values <dfn>
Element:
dfn { font-style: italic; }
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |