There are three varieties of lists in HTML:
- unordered lists,
- ordered lists and
- Description Lists.
In this article, you will learn how to create all three.
Example
An Unordered HTML List
- Apple
- Mango
- Grapes
An Ordered HTML List
- Apple
- Mango
- Grapes
Unordered HTML List
Unordered lists are generated as bulleted lists.
The <ul> tag began an unordered list. Each list item is contained in <li></li> tags.
Example
<ul> <li>Apple</li> <li>Mango</li> <li>Grapes</li> </ul>
Ordered HTML List
Ordered lists are represented by incremental numbers.
The <ol> tag began an ordered list. Each list item starts and ends with the <li></li> tags.
Example
<ol> <li>Apple</li> <li>Mango</li> <li>Grapes</li> </ol>
HTML Description Lists
HTML Description Lists are not as widely used as unordered and ordered lists.