HTML <dt> Tag

The <dt> element defines a description term or a name in a description list. This element contains inline data.

This element is used only as a child element of the <dl> tag.

The <dt> element is used along with the <dd> tag.

In HTML4.01 it was used to define an item in a definition list, however, in HTML5 it defines a term or a name in description lists.

Syntax

The <dt> element comes in pairs. The content must be written between opening (<dt>) and closing (</dt>) elements.

Example

<!DOCTYPE html>
<html>
   <body>
      <dl>
         <dt>Ararat-Shirak</dt>
         <dd>Armenian Premier League Game</dd>
         <dt>Dorians</dt>
         <dd>Concert</dd>
      </dl>
   </body>
</html>

Result


The <dt> tag uses the Global Attributes.