Tutorials 参考 练习 Menu
Paid Courses

HTML <dl> Tag


A description list, with terms and descriptions:

  <dd>Black hot drink</dd>
  <dd>White cold drink</dd>
来试试吧 »

Definition and Usage

The <dl> tag defines a description list.

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

Browser Support

<dl> Yes Yes Yes Yes Yes

Global Attributes

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

Event Attributes

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

Related Pages

HTML tutorial: HTML列表

HTML DOM reference: DList Object

Default CSS Settings

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


dl {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
来试试吧 »