HTML <dfn> Tag
Description
As a rule, in a document, when a new term is mentioned, it is highlighted in italics and its definition is given. When using this term in the future, it is considered already known to the reader. The <dfn>
HTML element is used to highlight such terms when they first appear in the text.
Browsers typically display the contents of a <dfn>
element in italics.
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
Desktop | |||||
Yes | 12 | Yes | 1 | Yes | Yes |
Tablets / Mobile | |||||
![]() |
|||||
Yes | Yes | 4 | Yes | Yes | Yes |
Last updated by CSSPortal on: 6th December 2019