HTML Description List or Definition List displays elements in definition form like in dictionary. The <dl>, <dt> and <dd> tags are used to define description list.
The 3 HTML description list tags are given below:
- <dl> tag defines the description list.
- <dt> tag defines data term.
- <dd> tag defines data definition (description).
Example
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title> HTML Definition List</title>
</head>
<body>
<h1>HTML Definition List</h1>
<dl>
<dt>PUBG</dt>
<dd>PlayerUnknown’s Battlegrounds (PUBG) developed by PUBG Corporation.</dd>
<dt>God Of War</dt>
<dd>God of War developed by Santa Monica Studio.</dd>
</dl>
</body>
</html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title> HTML Definition List</title>
</head>
<body>
<h1>HTML Definition List</h1>
<dl>
<dt>PUBG</dt>
<dd>PlayerUnknown’s Battlegrounds (PUBG) developed by PUBG Corporation.</dd>
<dt>God Of War</dt>
<dd>God of War developed by Santa Monica Studio.</dd>
</dl>
</body>
</html>
Output
- PUBG
- PlayerUnknown’s Battlegrounds (PUBG) developed by PUBG Corporation.
- God Of War
- God of War developed by Santa Monica Studio.
Example
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title> HTML Definition List </title>
</head>
<body>
<dl>
<dt><b>PUBG</b></dt>
<dd>PlayerUnknown’s Battlegrounds (PUBG) developed by PUBG Corporation.</dd>
<dt><b>God Of War</b></dt>
<dd>God of War developed by Santa Monica Studio.</dd>
</dl>
</body>
</html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title> HTML Definition List </title>
</head>
<body>
<dl>
<dt><b>PUBG</b></dt>
<dd>PlayerUnknown’s Battlegrounds (PUBG) developed by PUBG Corporation.</dd>
<dt><b>God Of War</b></dt>
<dd>God of War developed by Santa Monica Studio.</dd>
</dl>
</body>
</html>
Output
- PUBG
- PlayerUnknown’s Battlegrounds (PUBG) developed by PUBG Corporation.
- God Of War
- God of War developed by Santa Monica Studio.