<dl>


HTML <dl> Tag

Instance

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>php中文网(php.cn)</title> 
</head>
<body>

<dl>
  <dt>Coffee</dt>
  <dd>Black hot drink</dd>
  <dt>Milk</dt>
  <dd>White cold drink</dd>
</dl>

</body>
</html>

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

##All major browsers support the <dl> tag .


Tag definition and usage instructions

<dl> Tag defines a description list.

<dl> tags are used together with <dt> (defines items/names) and <dd> (describes each item/name).


Differences between HTML 4.01 and HTML5

In HTML 4.01, the <dl> tag defines a list of definitions.

In HTML5, the <dl> tag defines a description list.


Global attributes

<dl> tag supports HTML global attributes.


Event attributes

<dl> tag supports HTML event attributes.


Related Articles

HTML Tutorial: HTML List