HTML <dt> Tag

Topic: HTML5 Tags Reference« Prev|Next »

Description

The <dt> (short for definition term) tag represent a term or an item in a definition list.

The following table summarizes the usages context and the version history of this tag.

Parent: <dl>
Content: Inline and text
Start/End Tag: Start tag: required, End tag: optional
Version: HTML 2, 3.2, 4, 4.01, 5
 

Note:The <dt> element can only occur inside the definition list i.e. <dl> element and is restricted to inline-level content i.e. can't contain any block-level elements. It is usually followed by a <dd> element.


Syntax

The basic syntax of the <dt> tag is given with:

HTML / XHTML: <dt> ... </dt>

The example below shows the <dt> tag in action.

  • <dl>
  •     <dt>term1</dt>
  •     <dd>– definition1</dd>
  •     <dt>term2</dt>
  •     <dd>– definition2</dd>
  • </dl>

Tag-Specific Attributes

The <dt> tag doesn't have any specific attribute.


Global Attributes

Like all other HTML tags, the <dt> tag supports the global attributes in HTML5.


Event Attributes

The <dt> tag also supports the event attributes in HTML5.


Browser Compatibility

The <dt> tag is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 1+
  • Google Chrome 1+
  • Internet Explorer 2+
  • Apple Safari 1+
  • Opera 2.1+

Further Reading

See tutorial on: HTML Lists.

Related tags: <dl>, <dd>.

 
Close

Your Feedback:

 

We would love to hear from you! Please say something.