HTML dt Tag

HTML <dt> Tag: The HTML<dt> tag specifies a term or name in a description list. This HTML dt tag is used in conjunction with <dl> and <dd> tags. The subsequent <dd> elements provides some related text associated with the term specified using <dt>.

HTML <dt> Tag

This HTML<dt> tag supports both the global and the event attributes.

Syntax: <dt> Text  </dt>

Browser compatibility

The HTML<dt> tag is supported by different types of browsers.

  • Chrome
  • Firefox
  • Opera
  • Safari
  • Internet Explorer.

Example:

<!DOCTYPE html>
<html>
<body>
<dl>
  <dt>C</dt>
  <dd>Programming language</dd>
  <dt>Javascript</dt>
  <dd>Scripting language</dd>
</dl>
</body>
</html>

Output:

 

C
Programming language
Javascript
Scripting language