html tutorial - <dt> Definition Term tag in HTML - html5 - html code - html form



  • <dt> tag used to describe or define the terms in the <dl> tag.
  • <dt> is child element of <dl>.
  • <dt> tag used with the combination of <dl> and <dd> tags.
  • <dt> tag supports Global Attributes and Event Attributes.

Syntax for <dt> tag :

<dl><dt>Term Name</dt><dd>Description of term <dd></dl>

Sample coding for <dt> tag:

 Tryit<!DOCTYPE html>
<html>
     <head>
          <title>Wikitechy dt tag</title>
     </head>
     <body>
          <dl>
               <dt>HTML</dt>
               <dd>A HTML Wikitechy Tutorials for learners.</dd>
               <dt>CSS</dt>
               <dd>A CSS Wikitechy Tutorials for learners.</dd>
          </dl>
     </body>
</html>

Code Explanation for <dt> tag :

Code Explanation for <dt> tag
  1. Opening tag of definition term <dt> tag.
  2. Closing tag of definition term <dt>> tag.

Output for <dt>Tag :

Output for <dt> tag

  1. The output shows the Definition term as HTML.
  2. Here the output displays the definition term as a CSS.

Browser support for <dt> tag:

Yes Yes Yes Yes Yes

Related Searches to definition-term tag in html