
How to Create List in HTML
In this article, you will learn How to Create ordered or unordered List in the HTML. The HTML have two types of List.
- ordered List (ol)
- unordered list (ul)
Ordered List
<ol type="1">
<li>India</li>
<li>USA</li>
<li>China</li>
<li>England</li>
<li>Canada</li>
</ol>
Output:-
- India
- USA
- China
- England
- Canada
in ol tag have type is the property. we can use a/A/i/I at the place of 1.
Unordered List
<ul>
<li>India</li>
<li>USA</li>
<li>China</li>
<li>England</li>
<li>Canada</li>
</ul>
Output:-
- Coffee
- Tea
- Milk
In the ul tag, we can use the type of property. In the type of property can use “circle/square”. By default, it will show bullets
You may also like:- How to Create mail System in PHP using HTML form.