Ordered lists are also called numbered lists. Each line in the list is numbered automatically when viewed in the browser. Some examples of lists are step-by-step instructions and outlines.
Ordered lists use the <OL>, </OL>, and <LI> tags. The <OL> and </OL> tags define where the list should start and end. They also add blank lines before and after the list. The <LI> tag is used at the beginning of each line in a list.
The example below shows the list you will create in this exercise.

How to Create a Banana Split
1. Place a cut-up banana in a bowl.
2. Put three scoops of your favorite ice cream on top of the banana.
3. Pour your favorite syrup on top of the ice cream.
4. Sprinkle with your favorite candy or chopped nuts.
The source code shown below was used to produce the ordered list. Notice the <LI> tag before each entry. Your browser uses the <LI> tags to automatically number each item in the list.

<BODY>
How to Create a Banana Split
<OL>
<LI>Place a cut-up banana in a bowl.
<LI>Put three scoops of your favorite ice cream on top of the banana.
<LI>Pour your favorite syrup on top of the ice cream.
<LI>Sprinkle with your favorite candy or chopped nuts.
</OL>
</BODY>
To create the ordered list, do the following steps.

Unordered lists, or bulleted lists, are used when items do not need to be listed in any particular order. Some examples of unordered lists are grocery lists and to do lists.
Unordered lists use the <UL>, </UL>, and <LI> tags. The <UL> and </UL> tags define where the list should start and end. They also add blank lines before and after the list. The <LI> tag is used at the beginning of each line in a list.
Notice the <LI> tag is used in ordered and unordered lists. For ordered lists, the <LI> tag produces a numbered step. In an unordered list, the <LI> tag produces a bullet.
To create an unordered list, do the following steps:

Exercise 2
Definition lists, or glossary lists, are used to define words or terminology. Items in a definition list typically include two parts. The first part, a name or title, is displayed on a line by itself. The second part, sometimes called the definition, begins on a new line.
The definition list is started and ended using the <DL> and </DL> tags. The <DT> list is used before each definition term, and <DD> is used before each definition description.
To create a definition list, do the following steps.
DOS Disk Operating System
CD-ROM Compact Disc Read-Only Memory
URL Uniform Resource Locator
TIP: Adding blank lines in your text editor may make the list easier to read. Remember, blank lines in the text editor will not appear on your Web page.
Exercise 3
In this exercise you will create a Web page using the tags you learned in this chapter.
|
Ordered List (Numbered List) |
<OL> </OL> |
|
Unordered List (Bulleted List) |
<UL> </UL> |
|
List Item (Used with Ordered and Unordered Lists |
<LI> |
|
Definition List |
<DL> </DL> |
|
Definition Term |
<DT> |
|
Definition Description |
<DD> |
Using the tags in the table above, do the following:
You may need to use the scroll bars to see your whole page.
Exercise 4
Make a web page in HTML with:
An ordered list titled Important Things to Remember about HTML and list at least 5 items.
An unordered list titled HTML programming mistakes and list at least 5items.
Create a definition list titled Computer Terms and
define these terms: HTML, CD-R,
CD-RW, DVD
If you do not know these terms, use the Internet to find their meaning.
Give this web page an appropriate title.
Save it as chap 6 exer 4 lastnameinitial