Tutorials 参考 练习 Videos NEW Menu
Paid Courses Website NEW

HTML <dt> Tag


例子

A description list, with terms and descriptions:

<dl>
  <dt>Coffee</dt>
  <dd>Black hot drink</dd>
  <dt>Milk</dt>
  <dd>White cold drink</dd>
</dl>
来试试吧 »

Definition and Usage

The <dt> tag defines a term/name in a description list.

The <dt> tag is used in conjunction with <dl> (defines a description list) and <dd> (describes each term/name).


Browser Support

Element
<dt> Yes Yes Yes Yes Yes

Global Attributes

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


Event Attributes

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


Related Pages

HTML tutorial: HTML列表

HTML DOM reference: DT Object


Default CSS Settings

Most browsers will display the <dt> element with the following default values:

例子

dt {
  display: block;
}
来试试吧 »