- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
<!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.
Advertisements