DFN <dfn> Tag

Last Updated by Jai 12-Feb-20

0 715


<dfn> tag is also called as HTML definition tag as it is used to define the term in an HTML document. The content of the tag is shown in italic In the browser.

The <dfn> tag comes in pairs; the content is written between the opening (<dfn>) and the closing (</dfn>) tags.

DFN Tag Program:

<!DOCTYPE html>
<html>
<head>
<title>Dfn tag</title>
</head>
<body>
<h2>Example of dfn Tag</h2>
<p><dfn>HTML</dfn> is a markup language for creating web pages.</p>
</body>
</html>

Output:

DFN <dfn> Tag


Identified with the following rules:

1) On the off chance that <dfn> has a title trait; this current credit's worth is viewed as the term which is being characterized. The content inside the component can be a shortened form (likely utilizing <abbr>).

2) On the off chance that <dfn> has just a single youngster component which is a component with a title property, and the <dfn> component doesn't have its content substance, at that point the exact estimation of the title of <abbr> will be the term being characterized.

3) On the off chance that this isn't the situation, the content substance of <dfn> is the term which is being characterized.


Share:


Leave a Reply


Comments
    Waiting for your comments