This tutorial is currently unfinished.
One would think that there are many people who have written much better HTML tutorials than I will ever be able to. While there are some really good ones out there, most of them have been written over 5 years ago, and few mention or deal seriously with XHTML. Many still advocate the use of tags which are being depricated in newer versions of HTML (such as the <font>, <b>, and <i> tags). Therefore, I have written this page as a quick introduction to get you started with basic HTML.
Especially for more advanced HTML, you'll want to use other resources than this tutorial. There are some good resources on the web which will both help you get started, and provide material which supplements this tutorial:
This section is the same as Lab 1. If you have already completed Lab 1, you might want to skip to the next section.
Lists are exactly what they sound like. They are sets tags which allow you to create list structures in your text. There are actually three types of lists: ordered lists, unordered lists, and definition lists. (Lists are also covered to some extent in Lab 3.)
Ordered lists start and end with the <ol> tag, and their list items are defined with the <li> tag. For example:
<ol> <li>If you add my number</li> <li>to my number</li> <li>you get my number!</li> </ol>
Will appear as:
Unordered lists start and end with the <ul> tag, but their list items are also defined with the <li> tag. For example:
<ul> <li>If you add my dot</li> <li>to my dot</li> <li>you get two dots.</li> </ul>
Will appear as:
Definition lists are a bit more complicated than ordered and unordered lists. They start and end with the <dl> tag, and each item in the definition list has two parts, a term defined by the <dt> tag and a definition defined by the <dd> tag. For example:
<dl> <dt>Ingbert</dt> <dd>a person who needs to work on developing better examples.</dd> <dt>Student</dt> <dd>a person who is subjected to those examples.</dd> </dl>
Will appear as:
Is this form familiar? It should be, as the description for each type of list in this section is started by a definition list of one item that defines the type of list in question.
It is perfectly valid to nest lists inside one another. For example:
<ul> <li>When you nest lists <ol> <li>You put one list inside of another</li> <li>And you can do this as many levels as you want <ul> <li>See?</li> </ul></li> </ol></li> <li>But if you are <dl> <dt>kind</dt> <dd>you will use proper indentation so that people (both yourself and others) can read your source-code without getting confused</dd> </dl> And notice, text can appear here too if need be. </li> </ul>
Will appear as: