HTML Lists

HTML Unordered List

  • List item 1
  • List item 2
  • List item 3


An unordered HTML list starts with the <ul> tag, and each list item starts with the <li> tag and ends with the </li> tag. An unordered list are marked with bullets.

<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ul>

 

HTML Ordered List

  1. List item 1
  2. List item 2
  3. List item 3

 

An ordered HTML list starts with the <ol> tag, and each list item starts with the <li> tag and ends with the </li> tag. An ordered list are marked with numbers.

 

<ol>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>

 

 HTML Description List

H-E-B
– Grocery Store
La Cantera
– Shopping Mall


A description list is a list of items with a description of each item using the <dl> tag to define the list. <dl> is used in conjunction with <dt> to define items, and <dd> to describe the items.

<dl>
<dt>HEB</dt>
<dd>- Grocery Store</dd>
<dt>La Cantera</dt>
<dd>- Shopping Mall</dd>
</dl>