| 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
- glue
Notice the Number Before each List Item. Now here is the HTML Code for the Ordered List Above…
<ol>
<li>pencils
<li>pens
<li>erasers
<li>paper
<li>glue
</ol>
|
| I have never used this type of List, but it may be helpful to you. This type of list is a little more complicated, but still very easy to use. This list starts with the <dl> opening tag, and ends with the </dl> closing tag. This has another tag known as <dt> for Definition Term, and <dd> for Definition Definition. These two tags do not need closing tags.
Example of a Definition List…
- alliance
- A union, relationship, or connection by kinship, marriage, or common interest.
- alligator
- Large amphibious reptile with very sharp teeth, powerful jaws.
- alliterate
- To arrange or form words beginning with the same sound.
Now here is the HTML code for this Definition List…
<dl>
<dt>alliance
<dd>A union, relationship, or connection by kinship, marriage,
or common interest.
<dt>alligator
<dd>Large amphibious reptile with very sharp teeth, powerful jaws.
<dt>alliterate
<dd>To arrange or form words beginning with the same sound.
</dl>
Click topic to view:
Getting Started
Working on Tags
Working on Headings
Working on Paragraphs
Working on Links and Images
More on Tags
Clean Code, Escape Codes and Comments
Working on Lists
Fonts and Colors
Tables
Adding Sounds
Frames
Meta Tags
|