In html we use list attribute for arranging data in the form of list.
Their are two types of list in html.
- Ordered List
- Unordered List
ORDER LIST
If we want to put our data in numbered form rather than bullets then ordered list will be used.
We can create order list by using <`ol`> tag. In ordered list the first item will get number one, second will get number 2 and so on.
Syntax
<ol>
<li>Dog</li>
<li>Cat</li>
<li>Cow</li>
<li>birds</li>
</ol>
OUTPUT
- Dog
- Cat
- Cow
- birds
Unordered List
If we want to put our data in bullet form rather than numbered then unordered list will be used. We can create unordered list by using <ul> tag
All items in unordered list is shown with bullets.
Syntax
<ul>
<li>Tea</li>
<li>Coffee</li>
<li>MILK</li>
<li>Pepsi</li>
</ul>
OUTPUT
0 Comment(s)