Internet Basics About the Internet About Web Browsers Why Domain Names
Getting Started HTML vs XHTML Making Webpage Files Naming Webpage Files
Images and Colors How to Add Images Sources of Images Image File Formats Optimizing Images Color in HTML & CSS "Web-safe" Color Chart
More Advanced HTML Making Tables Formatting with Tables Making Forms Using Imagemaps Using Frames Meta Tags
Cascading Style Sheets Intro to CSS Ways to include CSS Some Useful CSS CSS Hover for Links
More Promoting Your Site How-To's Homepage Links
|
Lists
There are three kinds of lists: Ordered, Unordered, and Definition
- Ordered list
Ordered lists get numbers assigned to each item. Start an ordered list
with the tag <ol> and end it with the tag </ol>. Each item is
prefaced by an <li> tag, and ended with a </li> tag.
Sample Ordered List
<ol>
<li>Ordered Lists</li>
<li>Unordered Lists</li>
<li>Definition Lists</li>
</ol>
- Unordered list
Unordered lists show each item prefaced by a bullet, which varies a bit
in appearance as you nest levels of lists. they are designated by the tag
<ul> and the closing tag </ul>. they also use the <li> and </li> tags for items.
Sample Unordered List
<ul>
<li>Ordered Lists</li>
<li>Unordered Lists</li>
<li>Definition Lists</li>
</ul>
- Definition list
This is a definition list! They are started and stopped with <dl>
and </dl> tags.
The term to be defined or explained is marked <dt> and </dt> tags.
The definition is marked with a <dd> and </dd> tags.
Sample Definition List
<dl>
<dt>Ordered List</dt>
<dd>List of automatically numbered items.</dd>
<dt>Unordered List</dt>
<dd>List of bulleted items.</dd>
<dt>Definition List</dt>
<dd>List of items with definitions</dd>
<dl>
|