HTML: List: ul ol li

By Xah Lee. Date: . Last updated: .

unordered list

example:

<ul>
<li>cat</li>
<li>dog</li>
<li>mouse</li>
</ul>

browser shows:

ordered list

just like unordered list, but use ol instead of ul

example:

<ol>
<li>cat</li>
<li>dog</li>
<li>mouse</li>
</ol>

browser shows:

  1. cat
  2. dog
  3. mouse

HTML list