HTML provides several types of lists, including ordered lists (`<ol>`), unordered lists (`<ul>`), and definition lists (`<dl>`). Here's a brief overview of each:
1. Ordered Lists (`<ol>`):
Ordered lists are used to create lists where each item is numbered. You define each item using the `<li>` tag.
Example:
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
Output:
- First item
- Second item
- Third item
2. Unordered Lists (`<ul>`):
Unordered lists are used to create bulleted lists. Each item is marked with a bullet point.
Example:
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
Output:
- Item 1
- Item 2
- Item 3
3. Definition Lists (`<dl>`):
Definition lists are used to display a list of terms and their definitions. Each term is defined using `<dt>` and each definition is defined using `<dd>`.
Example:
<dl>
<dt>Term 1</dt>
<dd>Definition of Term 1</dd>
<dt>Term 2</dt>
<dd>Definition of Term 2</dd>
</dl>
You can combine these lists within each other to create nested lists. For example, you can nest an ordered list within an unordered list or vice versa.