πŸŽ‰ New: Top 75 PHP Interview Questions for 2026 β€” Free for all learners

HTML Description List

P
php Guru
Β· February 24, 2023 Β· 1 min read Β· Updated February 24, 2023

πŸ“Œ Key Takeaways

  • HTML Description List
  • HTML Description List | HTML Definition List
Advertisement

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

 

P
php Guru
← Previous Post
HTML Unordered List
Next Post β†’
HTML Block Elements and Inline Elements

Leave a Reply

Your email address will not be published. Required fields are marked *

Prove your humanity: 10   +   1   =