HTML Definition Tag <dfn> is used to specify a definition for word or term.
The HTML Definition Tag <dfn> always surrounds the word or term which is being defined.
Definition HTML Tag needs to be closed using the closing Definition tag </dfn>.
Syntax of HTML Definition Tag <dfn>
<dfn> Word or Term: </dfn> The Definition of the word or term.
Example of HTML Definition Tag <dfn>
HTML Definition Tag Code | Output |
<dfn> Computer: </dfn> A computer is a general purpose device that can be programmed to carry out a finite set of arithmetic or logical operations. |
Computer: A computer is a general purpose device that can be programmed to carry out a finite set of arithmetic or logical operations. |
Here in the above example we can see that the words “Computer” is formatted in a different way than the definition of the same and that is because we have wrapped the word “Computer” in the HTML definition tag.
HTML Definition Tag <dfn> supports HTML Global Attributes and HTML Event Attributes.
HTML Definition Tag Supporting Browsers
S. No. | Browser | Supported(Yes/No) |
1 | Internet Explorer | Yes |
2 | Firefox | Yes |
3 | Google Chrome | Yes |
4 | Opera | Yes |
5 | Safari | Yes |