There are two types of lists which are
- Ordered lists, uses numbers or letters. Site navigation on websites usually uses ordered lists.
- Unordered lists, uses different types of bullets
Both types of lists have two parts which are
- List container element <ul> or <ol> to indicate list start or end.
- List element <li>, which contains each item and is one or more.
Ordered Lists example
HTML code <ol> <li>One</li> <li>Two</li> <li>Three</li> </ol> |
Browser output |
Unordered Lists example
HTML code <ul> <li>One</li> <li>Two</li> <li>Three</li> </ul> |
Browser output |