HTML Description List
A description list is a list of terms, with a description of each term. The <dl> tag defines the description list, the <dt> tag defines the term name, and the <dd> tag describes each term.
Syntax:
<dl> Contents... </dl>
Please refer to the How to add description list of an element using HTML? article for further details.
Example: This example describes the HTML Description List.
<!DOCTYPE html>
<html>
<body>
<h2>A Description List</h2>
<dl>
<dt>Coffee</dt>
<dd>- 500 gms</dd>
<dt>Milk</dt>
<dd>- 1 ltr Tetra Pack</dd>
</dl>
</body>
</html>
Output:
HTML Lists
An HTML list is a record of related information used to display the data or any information on web pages in the ordered or unordered form.
HTML List Example
Basic Implementation of HTML lists.
<!DOCTYPE html>
<html>
<head>
<title>w3wiki</title>
</head>
<body>
<h2>Welcome To w3wiki Learning</h2>
<h5>List of available courses</h5>
<ul>
<li>Data Structures & Algorithm</li>
<li>Web Technology</li>
<li>Aptitude & Logical Reasoning</li>
<li>Programming Languages</li>
</ul>
<h5>Data Structures topics</h5>
<ol>
<li>Array</li>
<li>Linked List</li>
<li>Stacks</li>
<li>Queues</li>
<li>Trees</li>
<li>Graphs</li>
</ol>
</body>
</html>
Output:
There are three types of lists in HTML:
Table of Content
- HTML Unordered List or Bulleted List
- HTML Ordered List
- HTML Description List
Contact Us