What is the <dl> element in HTML?
The <dl> tag stands for description list. It is used to create a list of items where each item has a term (<dt> tag) and a description (<dd> tag).
The
<dt>tag is used to mention a term, and the<dd>tag is used to write the description of that term.
Syntax
<dl>
<dt>Term 1</dt>
<dd>Description for Term 1</dd>
<dt>Term 2</dt>
<dd>Description for Term 2</dd>
</dl>
In the above snippet of code, <dl> is used to create a list. The <dt> and <dd> tags are used to name the terms and describe them, respectively.
Note that the
<dd>and<dt>tags are within the body of<dl>tag.
Example
The following example shows how to use <dl> in HTML:
A list of programming languages and their uses are created using the <dl> tag. The name of each language is defined in a <dt> tag, and its use is defined in the <dd> tag.
Free Resources
Copyright ©2025 Educative, Inc. All rights reserved