HTML description list

A description list is used to create a list of terms with its descriptions. A description list is defined using the dl tag.

HTML description list

A description list is used to create a list of terms with its descriptions. A description list is defined using <dl> tag. The term is specified in <dt> tag and the description is specified in the <dd> tag.

Syntax

<dl>
    <dt>Term</dt>
    <dd>Description</dd>
</dl>

Example

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <dl>
        <dt>HTML</dt>
        <dd>HTML stands for Hypertext Markup Language. It is used to create web pages.</dd>
        <dt>JavaScript</dt>
        <dd>JavaScript is a high-level, weakly typed, multi-paradigm programming language and is most commonly used in web development.</dd>
    </dl>
</body>
</html>

Output

HTML
HTML stands for Hypertext Markup Language. It is used to create web pages.
JavaScript
JavaScript is a high-level, weakly typed, multi-paradigm programming language and is most commonly used in web development.

Share Tweet Send
0 Comments
Loading...