HTML dl Tag

HTML <dl> Tag: The HTML <dl> tag is used in defining a description list. This HTML dl tag is used in conjunction with <dd> tag and <dt> tag. This tag used to define the term name. In HTML4.1, it define definition list and in HTML5, it define description list.



HTML <dl> Tag

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

Syntax: <dl> Text <dl>

Browser compatibility

The HTML <dl> 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