Working with lists in HTML

When creating a webpage you will often need to list items, HTML gives room for this to happen.

we have two types of lists in HTML, ordered and unordered List

Ordered list

you can use this when your list must follow a particular other like 1,2,3,4...

To create an ordered list, you will use <ol></ol> a tag

<h1>Ordered list</h1>
<ol>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
    <li>Item 4</li>
</ol>

Unordered list

you will use this when you don't need any order in arrangement but just a bullet point.

<h2>Unodered list</h2>
<ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
    <li>Item 4</li>
</ul>

one thing to note is items in a list are added via <li></li> tag.