|
|
 |
HTML Tutorial
How do I make bulleted lists or numbered lists?
The Unordered (Un-numbered) List is the first of the three types of lists. This
is probably the most common list you will use.
Example of an Unordered List:
- pencils
- pens
- erasers
- paper
Notice the Bullet Before each List Item.
The code:
<ul> <li>pencils</li>
<li>pens</li>
<li>erasers</li>
<li>paper</li>
</ul>
The <ul> tag is the opening Unordered List Tag. Between these two tags you place
LIST ITEMS, each one having an individual <li> opening tag. There is no limit to
the number of List Items you may have in a single list.
The Ordered List, also known as the Numbered List, is very similar in structure
to the unordered list, except each list item has a number in front of it,
instead of a bullet. Also, the opening tag for the list is <ol> instead of <ul>,
and the closing tag is </ol> instead of </ul>. List Items within the list still
use the same tags. Example of an Ordered List:
- pencils
- pens
- erasers
- paper
Notice the Number Before each List Item.
The code:
<ol> <li>pencils</li>
<li>pens</li>
<li>erasers</li>
<li>paper</li>
</ol>
|
|