HTML Description List

HTML Description List | HTML Definition List

HTML’s Description List or Definition List shows elements in the same way that a dictionary does: as definitions. When you want to show a glossary, list of terms, or other name-value list, the definition list is a good choice. Description lists are made with the <dl>, <dt>, and <dd> tags.

Here are the three HTML tags that describe a list:

<dl> tag defines the description list.
<dt> tag defines data term.
<dd> tag defines data definition (description).

 

Example

<!DOCTYPE html>
<html>
<body>

<h2>A Description List</h2>

<dl>
<dt>Red</dt>
<dd>-Blood color is red.</dd>
<dt>Blue</dt>
<dd>-Sky color is blue</dd>
<dt>Green</dt>
<dd>-Tree color is Green.</dd>
<dt>Orange</dt>
<dd>-Orange color is orange.</dd>
</dl>

</body>
</html>

Output

discription list

 

People also search
Scroll to Top