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...
Notice the Bullet Before each List Item. Now here is the HTML Code for the Unordered
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.
Example of an Ordered List...
Notice the Number Before each List Item. Now here is the HTML Code for the Ordered
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. These two tags
do not need closing tags.
Example of a Definition List...
Now here is the HTML code for this Definition List...
- A union, relationship, or connection by kinship, marriage, or common interest.
- Large amphibious reptile with very sharp teeth, powerful jaws.
- To arrange or form words beginning with the same sound.
<dd>A union, relationship, or connection by kinship, marriage, or common interest.
<dd>Large amphibious reptile with very sharp teeth, powerful jaws.
<dd>To arrange or form words beginning with the same sound.
Your own HTML page...
Add the following to your HTML page ("Home.htm"): (the blue text is what to add)
<head><title>My Home Page</title></head>
<center><font color="Blue"><h1>YOURNAME's Home Page</h1></font></center>
This is the home page of <a href="mailto:YOUR EMAIL ADDRESS"><img src="bullet.gif" border=0><b>YOURNAME</b>.<img src="bullet.gif" border=0></a>
<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>
<li> <a href="http://www.xencon.com">Xenon Web Design</a> </li>
<li> <a href="http://www.microsoft.com">Microsoft</a> </li>
<li> <a href="http://www.sybase.com">Sybase</a> </li>
<li> <a href="http://www.sybase.co.za">Sybase South Africa</a> </li>
Save the text file as "Home.htm".
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
More Web Development Articles
More By Developer Shed