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

 

Related Article
Introduction to HTML

HTML Introduction – Learn the Basics of HTML HTML is the starting point of web development. Every website you see Read more

What is HTML

What Is HTML – Complete Beginner Explanation HTML is the foundation of the web. Every website you visit, from simple Read more

HTML Basic Examples

HTML Basic Examples – Learn HTML by Practice The best way to learn HTML is by writing and testing simple Read more

HTML text Editors

HTML Text Editors – Learn How to Write HTML Code To write HTML code, you need a text editor. A Read more

HTML Tags

HTML Tags are the basic units used to create HTML elements.They define how content is displayed in a web browser. Read more

HTML Elements

HTML Elements are the building blocks of every web page.Each element defines a part of the webpage, such as headings, Read more

HTML Attributes

HTML Attributes provide additional information about HTML elements.They help control how elements behave, display, or store extra data. In this Read more

HTML Headings

HTML Headings are used to define titles and subtitles on a web page.They help organize content and improve readability for Read more