HTML Tag


The <dfn> tag in HTML is used to define the instance of a term in HTML, which is the initial use of a term.

Let us now see an example to implement the <dfn> tag −

Example

 Live Demo

<!DOCTYPE html>
<html>
<body>
<h2>Subjects in MCA</h2>
<p><dfn title="Master of Computer Applications">MCA</dfn> is a 3-year post graduate degree course </p>
<p>Following are semester one subjects...</p>
<dl>
   <dt>JavaScript</dt>
      <dd>A scripting language.</dd>
   <dt>Java</dt>
      <dd>It is a programming language.</dd>
   <dt>jQuery</dt>
      <dd>A JavaScript library.</dd>
   <dt>C#</dt>
      <dd>Object-oriented programming language.</dd>
</dl>
</body>
</html>

This will produce the following output. The title is also visible −

In the above example, we have set the <dfn> tag: <dfn title="Master of Computer Applications">MCA</dfn> is a 3-year post graduate degree course </p>

The dfn tag is used to define a term i.e. MCA here.

Updated on: 30-Jul-2019

38 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements