HTML dl tag

The HTML <dl> tag is used for declaring a definition list.

In a definition list, each list item contains two or more entries; a term and at least one description. The term is represented by the <dt> element and the description is represented by the <dd> element.

The basic tag is written like this <dl></dl> with <dt> and <dd> elements nested inside.

Note that a definition term can be linked to more than one description.

<h4>Example 1</h4>
<dl>
<dt>HTML</dt>
<dd>The markup language for writing web pages. Stands for HyperText Markup Language.</dd>
<dt>JavaScript</dt>
<dd>A scripting language that is often used on web pages to provide more functionality than what HTML alone can do.</dd>
<dt>CSS</dt>
<dd>Standing for Cascading Style Sheets, CSS allows web authors to style the HTML elements that they include on a web page.</dd>
</dl>

<h4>Example 2</h4>
<dl>
<dt>Red</dt>
<dd>A color at the end of the spectrum next to orange and opposite violet, as of blood, fire, or rubies.</dd>
<dt>Green</dt>
<dd>A color between blue and yellow in the spectrum; colored like grass or emeralds.</dd>
<dd>Covered with grass, trees, or other plants.</dd>
<dt>Blue</dt>
<dd>Color intermediate between green and violet, as of the sky or sea on a sunny day.</dd>
<dd>Of a person in a melancholy, sad, or depressed mood.</dd>
</dl>

Eg. :

Example 1

HTML
The markup language for writing web pages. Stands for HyperText Markup Language.
JavaScript
A scripting language that is often used on web pages to provide more functionality than what HTML alone can do.
CSS
Standing for Cascading Style Sheets, CSS allows web authors to style the HTML elements that they include on a web page.

Example 2

Red
A color at the end of the spectrum next to orange and opposite violet, as of blood, fire, or rubies.
Green
A color between blue and yellow in the spectrum; colored like grass or emeralds.
Covered with grass, trees, or other plants.
Blue
Color intermediate between green and violet, as of the sky or sea on a sunny day.
Of a person in a melancholy, sad, or depressed mood.