HTML Lists

What is Lists in HTML?

HTML Lists are used to specify lists of information.

All lists may contain one or more list elements.

There are three different types of HTML lists: Ordered List or Numbered List (ol) Unordered List or Bulleted List (ul)


HTML List Tags:


Tag Description
<ul> tag Defines an unordered list
<ol> tag Defines an ordered list
<li> tag Defines a list of item
<dl> tag Defines a description list

<ul> tag

Unordered HTML List

The list items will be marked with bullets (small black circles) by default:

                          
<ul>
 <li>Serengeti National Park</li>
 <li>Ngorongoro National Park</li>
 <li>Mikumi National Park</li>
</ul>
                          
                        

<ol> tag

Ordered HTML List

The list items will be marked with numbers by default:

                          
<ol>
 <li>Mountain Kilimanjaro in Tanzania</li>
 <li>Manyara National Park</li>
 <li>Tarangire National Park</li>
</ol>
                          
                        

<dl> tag

Description lists

The <dl> tag defines the description list:

The <dt> tag defines the term (name):

The <dd> tag describes each term:

                          
<dl>
  <dt>Tanzania National Park</dt>
 <dd>Ngorongoro National Park</dd>
  <dt>Tanzania</dt>
 <dd>Visit Zanzibar</dd>
</dl>