Loading

Description Lists

  • Description lists are used to represent a set of terms and their corresponding descriptions
  • It starts with <dl> tag which consists of <dt> defining the term and <dd> describing the terms.

Syntax:

    <dl>
        <dt>Coffee</dt>
        <dd>- black hot drink</dd>
        <dt>Milk</dt>
        <dd>- white cold drink</dd>
    </dl>

Example:

<!DOCTYPE html>
<html lang="en">

<head>
    <title>Table</title>
</head>

<body>
    <h2>Description Lists</h2>
    <dl>
        <dt>Coffee</dt>
        <dd>- black hot drink</dd>
        <dt>Milk</dt>
        <dd>- white cold drink</dd>
    </dl>
</body>

</html>

Output: