Definition List

How to make a definition list
 avatar
messywebdev
plain_text
2 years ago
569 B
8
Indexable
Definition List makes use of following three tags:

<dl> - Defines the start of the list
<dt> - A term
<dd> - Term definition
</dl> - Defines the end of the list

Example:


<!DOCTYPE html>
<html>
    <head>
        <title>HTML Definition List</title>
    </head>
<body>
<dl>
    <dt><b>HTML</b></dt>
    <dd>This stands for Hyper Text Markup Language</dd>
    <dt><b>HTTP</b></dt>
    <dd>This stands for Hyper Text Transfer Protocol</dd>
</dl>
</body>
</html>

Output:

HTML
This stands for Hyper Text Markup Language
HTTP
This stands for Hyper Text Transfer Protocol
Editor is loading...