Description List in HTML

HTML Description List

In HTML Description list, entries are listed like a dictionary or encyclopedia, and hence it is also called as a Definition List. To display a glossary, a list of terms or other name-value lists, theĀ  HTML Description list can be the best choice.

There are three tags used in an HTML Description list. These are:

  • <dl>: To define the description list.
  • <dt>: To define the data term.
  • <dd>: To define the data definition or description.


<!DOCTYPE html>
<h2>HTML Description List or Definition List</h2>
  <dd>- Hyper Text Markup Language</dd>
  <dd>- Hyper Text Transfer Protocol</dd>


HTML Description List or Definition List

- Hyper Text Markup Language
- Hyper Text Transfer Protocol

In the above example, we created a description or definition list in HTML containing two items along with their definitions.

Please Share