November 15, 2026
What Are HTML Lists and How Are They Used?
You can create lists in HTML. Through lists you can arrange your webpage's content in a particular order, according to your list type. In HTML you can create ordered list, unordered and definition lists.
HTML Unordered Lists
In unordered list, list items represent in some iconic characters or it can be a image. It is also called bulleted list. Unordered list is used when number of list items comes in any order such shopping list, number of customers in a bank, number of patient in a hospital etc. Unordered list commences with <ul> tag and ends with </ul> tag. <li></li> tags are used to represent list items. Examples of unordered list are mentioned below:
Example
<html>
<head>
</head>
<body>
<ul>
<li>Earth</li>
<li>Mars</li>
</ul>
</body>
</html>
Output
In below example you can learn different types of unordered list:
<html>
<head>
</head>
<body>
<ul type="disc">
<li>Disc example</li>
</ul>
<ul type="circle">
<li>Circle example</li>
</ul>
<ul type="square">
<li>Square example</li>
</ul>
</body>
</html>
Output
HTML Ordered Lists
In ordered list, list items represent in particular order such as 1, 2, 3 or a, b, c, or I, II, III etc. this kind of list also called numbered list. Ordered list begins with <ol> tag and ends with </ol> tag. <li></li> tags are used to represent list items. Examples of ordered list are mentioned below:
Example
<html>
<head>
</head>
<body>
<ol>
<li>Earth</li>
<li>Mars</li>
</ol>
</body>
</html>
Output
- Earth
- Mars
In below example you can learn different types of ordered list:
<html>
<head>
</head>
<body>
<ol type="a">
<li>First type example</li>
</ol>
<ol type="A">
<li>Second type example</li>
</ol>
<ol type="i">
<li>Third type example</li>
</ol>
<ol type="1">
<li>Fourth type example</li>
</ol>
<ol type="4">
<li>fifth type example</li>
</ol>
</body>
</html>
Output
- First type example
- Second type example
- Third type example
- Fourth type example
- fifth type example
HTML Definition Term Lists
In definition list, list items represent in more organize manner. There are some situation occur when you have list items and their description so for such lists definition list is best. Definition list begins with <dl> tag and ends with </dl> tag. In this type of list, list divides into two parts first your list element and second definition of list element. Definition term(list element) begins with <dt> tag and ends with </dt> tag. Defining definition begins with <dd> tag and ends with </dd> tag.
Example
<html>
<head>
</head>
<body>
<dl>
<dt><b>School</b></dt>
<dd>Where children go for education.</dd>
<dt><b>Office</b></dt>
<dd>Where people goes for work.</dd>
</dl>
</body>
</html>
Output
- School
- Where children go for education.
- Office
- Where people goes for work.
FAQ
1. What are HTML lists?
HTML lists are used to organize related information into a structured format on a webpage. They help present information clearly using numbered items, bullet points, or term-and-description pairs.
2. What is the purpose of the <li> tag in HTML?
The <li> tag represents an individual list item. It is commonly used inside ordered lists (<ol>) and unordered lists (<ul>). It can also be used inside menu elements.
3. What is the difference between <dl>, <dt>, and <dd> tags?
These three tags work together to create a description list. The <dl> tag defines the complete description list, the <dt> tag identifies the term, and the <dd> tag contains the explanation or description associated with that term.