Unordered Lists, or <ul> .. </ul> tags, are ones that appear as a list of items with "bullets" or markers in the front. The bullet marks will depend on the particular version of your web browser and the font specified for displaying normal WWW text (e.g. for Macintosh, the bullets are the option-8 character -- in Times font this is a small square, in Geneva it is a large round dot).
Here is an example of an unordered list:
My Unordered List:
|
And this is the HTML format for producing this format:
<B>My Unordered List:</B> <ul> <li> Item 1 <li> Item 2 <li> Item 3 </ul>
The <ul> tag marks the beginning and end of the list, and the <li> indicates each list item.
Ordered lists are ones where the browser numbers each successive list item starting with "1." Note that the only difference is changing the ul tag to ol tag.
Using the example from above:
My Ordered List:
|
And this is the HTML format for producing this format:
<B>My Ordered List:</B> <ol> <li> Item 1 <li> Item 2 <li> Item 3 </ol>
Ordered Lists and Unordered lists can have different levels; each will be indented appropriately by your web browser. Your major concern will be to verify that each list is properly terminated and the nesting order is correct.
It can start to look complicated with all of those <ol> <li> </ul> <li> tags floating around, but just try to remember the basic structure:
<ul> <ol> <li> <li> <li> <li> </ul> </ol>
Here is an example of an unordered list with sublevels of other lists:
Nested Unordered List
|
Note how the bullet marks change for different levels of the list.
And this is the HTML format for producing this format:
<B>Nested Unordered List</B> <ul> <li>This is the first item <li>This is the second item <ul> <li> This is the first subitem of the second item <ul> <li> And this is a subitem of a subitem <li> Getting lost yet? </ul> <li> This is the second subitem of the second item <li> This is the third subitem of the second item </ul> <li>This is the third item </ul>
Not only can you include ordered lists within ordered lists, but you can also mix and match list types. Hold onto your hats! The HTML starts to look pretty ugly, but watch how lists completely contain other lists.
For example, this ordered list includes a nested unordered list:
Nested Unordered List
Nested Unordered List
|
And this is the HTML format for producing this format. Note how the HTML has been indented to make it easier to read:
<B>Nested Unordered List</B> <ol> <li>This is the first item <li>This is the second item <ul> <li> This is the first subitem of the second item <ol> <li> And this is a numbered subitem of a subitem <li> And this is another numbered subitem of a subitem <li> Getting lost yet? </ol> <li> This is the second subitem of the second item <li> This is the third subitem of the second item </ul> <li>This is the third item </ol>
Using the list tags, you will now add an ordered and an unordered list to your Volcano Web page.
How many do you know?
<ul> <li>caldera <li>vesicularity <li>pahoehoe <li>rheology <li>lahar </ul>
Your mission is to find information and report on a volcano, other than the ones listed above, that has erupted in the last 100 years. Your reports must include: <ol> <li>Type of volcano <li>Geographic location <li>Name, distance, and population of nearest major city <li>Dates of most recent and most destructive eruptions. <li>Other events associated with the recent eruptions (earthquakes, floods, mudslides, etc) </ol> <p> Then, write a one page description on the major hazards to humans in the vicinity of this volcano. Speculate on what you would do if you were in charge of minimizing the risk to the population.