Skip to content

HTML Lists

Hridaya edited this page Feb 4, 2021 · 2 revisions

Unordered HTML List

An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.

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

<ul>

<li>Coffee</li>

<li>Tea</li>

<li>Milk</li>

</ul>

Preview:

  • Coffee
  • Tea
  • Milk

Ordered HTML List

An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.

The list items will be marked with numbers by default:

Code:

<ol>

<li>Coffee</li>

<li>Tea</li>

<li>Milk</li>

</ol>

Preview:

  1. Coffee
  2. Tea
  3. Milk