How do we define the start of a term in a definition list in HTML?


The HTML <dt> tag is used to define the start of a term in a definition list. A definition list is similar to other lists but in a definition list, each list item contains two entries; a term and a description.

Example

You can try to run the following code to define the start of a term in a definition list using the <dt> tag −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML dt Tag</title>
   </head>
   <body>
      <dl>
         <dt>Definition List</dt>
         <dd>A list of terms and their definitions/descriptions.</dd>
         <dt>JAVA</dt>
         <dd>Tutorial on JAVA Programming Language.</dd>
         <dt>Android</dt>
         <dd>Tutorial on Android Operating System.</dd>
      </dl>
   </body>
</html>

Updated on: 03-Mar-2020

181 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements