Professional Documents
Culture Documents
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
Ex.
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<ul> − An unordered list. This will list items using plain bullets.
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol> − An ordered list. This will use different schemes of numbers to list your
items.
Ordered HTML List - The Type Attribute
The type attribute of the <ol> tag, defines the type of the list item marker:
Type Description
type="I" The list items will be numbered with uppercase roman numbers
type="i" The list items will be numbered with lowercase roman numbers
By default, an ordered list will start counting from 1. If you want to start counting from a
specified number, you can use the start attribute
Ex.
<ol start="50">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Nested HTML Lists
A nested list is a list inside another list.
You can create a nested unordered list, or a nested ordered list, or even an ordered list nested
inside an unordered one.