HTML Tag Reference - HTML tag <dt>








This element is known as the definition term, and it is used in conjunction with the <dl> and <dd> elements. The <dl> element is a definition list that you can use to contain multiple definition terms, <dt>, along with definition descriptions, <dd>.

Browser compatibility

<dt> Yes Yes Yes Yes Yes

What's new in HTML5

None.





Global Attributes

The <dt> tag supports the Global Attributes in HTML.

Event Attributes

The <dt> tag supports the Event Attributes in HTML.

Default CSS Settings

dt { 
    display: block;
}

Example

A demo showing how to use <dt> tag.

<html>
<body>
     <dl>
          <dt>&lt;TABLE&gt;</dt>
          <dd>an html element.</dd>
          <dt>border-color</dt>
          <dd>a style sheet property.</dd>
          <dt>innerText</dt>
          <dd>a JavaScript property.</dd>
          <dt>cloneNode()</dt>
          <dd>a JavaScript method.</dd>
     </dl><!--   w  w w  .  j av  a  2s  .c  o m-->
</body>
</html>

Click to view the demo