UL stands for Unordered List and LI stands for List Item.
<ul> and </ul> are the start and end tags of the list. <li> is placed before each
item in the list. Note that the <li>'s are indented. This is done to keep the list readable and
easy to edit. The results look like this:
Red
White
Blue
Three different types of symbols are used with unordered lists, discs,
circles and squares. Unordered lists can be embedded inside other lists, as show below:
Note how the entire unordered list in imbedded between two <li>'s from the outer list. The results
look like this:
Red
Pink
Maroon
White
Blue
Note how the symbols switched to circles in the inner list. If another unordered list were to be
imbedded inside the inner list, it would switch it squares. You can however change this order by
using the type attribute. The type attribute is placed inside the <ul> tag like so:
Note how the first <ol> is not closed until the last line and everything in between is indented.
All imbedded <ol> tags are done the same way. Also note the fourth <ol> tag has a type="a" and the "a"
is lower case. Study this example carefully.
Dictionary Lists
A Dictionary listing has three tags:
<dl>
Dictionary Listing
<dt>
Dictionary Term
<dd>
Dictionary Defination
<dl>
<dt>Cat</dt>
<dd>Any of various other carnivorous mammals of the family Felidae,
which includes the lion, tiger, leopard, lynx, and domestic cat.</dd>
</dl>
The results are:
Cat
Any of various other carnivorous mammals of the family Felidae,
which includes the lion, tiger, leopard, lynx, and domestic cat.
Web Page Design: Exercise 5
Now let's add content to the Contact page.
If any of these images are not in the images folder copy them to the images folder:
NOTE: You may have to remove the [1] from the name of the copied images.
For example, the letter.gif may copy over to the images folder as letter[1].gif
Add this content to the Contact page just below the </h2> in the Main Body:
There are four different ways to contact us here at Global Company:
<br><br>
<ol>
<li><img src='images/letter.gif' align='right'>
Write Us:
<br><br>
Global Company<br>
000 Cold Old Road<br>
Nowhereville, Oo 00000-0000
<br><br><hr></li>
<li><img src='images/ring.gif' align='right'>
Ring Us:
<br><br>
000-000-0000
<br><br><hr></li>
<li><img src='images/email.gif' align='right'>
E-mail Us:
<br><br>
<a href='mailto:ContactUs@GlobalCompany.com?subject=Email to Global
Company'>ContactUs@GlobalCompany.com</a>
<br><br><hr></li>
<li><img src='images/form.gif' align='right'>
Fill Out Our Form:
<br><br>
~under construction~
<br><br></li>