How to Create ordered or unordered List in the HTML

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.

  1. ordered List (ol)
  2. 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:-

  1. India
  2. USA
  3. China
  4. England
  5. 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.

Leave A Reply