HTML List

A list is an element use to enumerate or list items. In constructing list, firs, the type of list should be define, then the item should be inside the <li> tag. There are two types of list in html: the ordered list and unordered list.

 

Ordered List

The ordered list contains numbers as their bullet. For example,

<ol>
   <li>The first item</li>
   <li>The second item</li>
   <li>The third item</li>
</ol>
Output
  1. The first item
  2. The second item
  3. The third item

Unordered List

The unordered list will have a rounded bullet by default, or a custom bullet.

<ul>
   <li>The first item</li>
   <li>The second item</li>
   <li>The third item</li>
</ul>
Output
  • The first item
  • The second item
  • The third item
Share this tutorial!