<Table of Contents>
GreenGeeks Secure Hosting, $4.95. Learn More. See More Courses ... Learn HTML5 Today!
>>  -- CSS, Web Design, HTML, JQuery
- Bob's HTML Course - Take HTML5 Lessons - Twitter - Dave's Blog - Learn on your iPad
Web Hosting HTML Tutorial CSS Tutorial Web Design Tutorial Hosting under
Get a FREE phone when you purchase the LG401G / 60 Minute Card Bundle!
This course has been visited by over three million people over the past few years. It's a little bit out of date. You're free to read it, it's a classic and still very useful. But, I'd also recommend that you download "Web Design Basics" for Apple's iPad. It's a complete re-write of this course, including about five times as much info.
Check out my new free course: Designing without a Degree.
Learn to be a web designer without expensive classes!

iPage Web Hosting -- Go Green for only $4.50/mo.


HTML Code MiniChapter 7: Lists, Lists, Lists

HTML Tutorial Chapters:  
iPage 
is Easy to Use
iPage $95 Plan on sale for $3.50/mo
Click Here for More Details!

The UNORDERED HTML List...

< back to the previous chapter

The Unordered 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...

  • pencils
  • pens
  • erasers
  • paper
  • glue
Notice the Bullet Before each List Item. Now here is the HTML Code for the Unordered List Above...

<ul>
 <li>pencils
 <li>pens
 <li>erasers
 <li>paper
 <li>glue
</ul>

The <ul> tag is the opening Unordered List Tag. Between these two tags you place LIST ITEMS, each one having an individual <li> opening tag. (If you want, you can use an optional </li> closing tag, but it is not needed.) There is no limit to the number of List Items you may have in a single list.



Check to see if the .com or .co you want is available with this search box:

The ORDERED HTML 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.

Example of an Ordered List...

  1. pencils
  2. pens
  3. erasers
  4. paper
  5. 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>

The HTML Definition List...

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>

HTML Code- Try it Yourself!

In the Box below, type the following HTML code, then click "Check it Out!" The HTML document you made will be displayed in your browser. You may wish to change the words within the tags and the tag attributes just to try it out.

Try typing this:

<html>
<head><title>Title goes here</title></head>
<body>
<h1>This example shows Lists</h1>
<hr>
<h2>A list Example!</h2>
<hr size=10>
<ul>
<li>pencils
<li>pens
<li>erasers
<li>paper
<li>glue
</ul>
</body>
</html>




Get the Latest Phones at TracFone Wireless! View Today's Phone Deals!
Hosting CompanySpecial FeaturesHost DetailsDisk Space/
Bandwidth
Domain PricePrice (Click for More)
iPage Expert
Web Hosting
"Best Control Panel Ever"/
Enhanced Security/100% Green
Unlimited/UnlimitedFree (ever year) $7.95/mo $4.50/mo
Globat Hosting Free Blogging Software/
Easy Control Panel Setup
Unlimited/Unlimited Free (first year) $7.95/mo $4.44/mo
GreenGeeks Hosting Enhanced Security (SSH)/
North American 24/7 Support
Unlimited/Unlimited Free (every year) $6.95/mo $4.95/mo
1&1 Hosting Enhanced Security (SSH)/
Scripting, and IMAP Secure Email
250GB/Unlimited 3 Free (every year) $9.99/mo
Read my hosting reviews.
Continue Next Chapter

Would you learn to learn how to design web sites without paying for a college degree?
Learn how to design without a degree at designingwithoutadegree.com

Copyright © Dave Kristula. All rights reserved.
URL: http://www.davesite.com/webstation/html/chap07.shtml