Creating Lists

Lists are a great way for you to organize your information, especially if you have a lot of it. There are two kinds of lists - ordered lists and unordered lists.


Unordered lists

An unordered list is a list with dots. It looks like this on your page:
  • apples
  • bananas
  • grapefruit
This is what the code looks like for the list above.

<UL>
<LI>apples
<LI>bananas
<LI>grapefruit
</UL>


The "ul" means "unordered list." That's where we are saying we want the dotted list. The "li" stands for "list item." We're telling it that we want the dot there.

Ordered lists

An ordered list is a list with numbers. The HTML automatically numbers the items for you. It looks like this on your page:
  1. apples
  2. bananas
  3. grapefruit
This is what the code looks like for the list above.

<OL>
<LI>apples
<LI>bananas
<LI>grapefruit
</OL>


The "ol" means "ordered list." That's where we are saying we want the numbered list. The "li" stands for "list item." We're telling it that we want the number there.