Your Name Here
Internet Services
Question?
Our Products
- Domain Registration
- Hosting Packages
- 50mb Web Hosting
- 100mb Web Hosting
- 200mb Web Hosting
- Micro Web Hosting
- Starter Web Hosting
- Standard Web Hosting
- Pro Web Hosting
Our Features
HTML Tutorial
Chapter 7: Lists, Lists, Lists
The Unordered List
The Unnumbered 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...
- Pens
- Pencils
- Paper
Notice the Bullet Before each List Item.
Now here is the HTML Code for the Unordered List Above...
<ul><li>Pens</li>
<li>Pencils</li>
<li>Paper</li>
</ul>
The <ul> tag is the opening Unordered List Tag. Therefore, the </ul> is the closing tag. Between these two tags you place LIST ITEMS, each one having an individual <li> opening tag, and an optional </li> closing tag. There is no limit to the number of List Items you may have in a single list.
The Ordered 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.
- Pens
- Pencils
- Paper
Notice the Number Before each List Item. Now here is the HTML Code for the Ordered List Above...
<ol><li>Pens</li>
<li>Pencils</li>
<li>Paper</li>
</ol>
The Definition List
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.
- 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</dt>
<dd>A union, relationship, or connection by kinship, marriage, or common interest.</dd>
<dt>Alligator</dt>
<dd>Large amphibious reptile with very sharp teeth, powerful jaws.</dd>
<dt>Alliterate</dt>
<dd>To arrange or form words beginning with the same sound.</dd>
</dl>
Your Own HTML Page
Add the following red text to your HTML page ("index.html")
<html>
<head>
<title> My First Webpage </title>
</head>
<body background="bg.jpg">
<center><h1><font color="blue">YOURNAME's Home Page</font></h1></center>
<p>This is the home page of <b>YOURNAME</b>.</p>
<p>E-Mail me by clicking the mail image. <a href="mailto:youremailaddress"><img src="mail.png" border=0></a></p>
<p>Type something about yourself here. Describe briefly who you are and what you do for a living. Remember to use bold and italic text, for emphasis.</p>
<h2>My favourite Web Sites</h2>
<ul>
<li><a href="http://www.your-name-here.co.uk">Domain Name Registrations</a></li>
<li><a href="http://www.bestdesigns.co.uk">Web Designers In Blackpool</a></li>
<li><a href="http://www.blackpoolhotel.com">Blackpool Hotels</a></li>
</ul>
</body>
</html>
Save the text file as "index.html".