|
Creating Lists
|
| HTML has several different variety of lists. These can be especially useful in basic web page design.
|
|
Numbered Lists:
|
|
Use the <OL> and the <LI> tags to create numbered lists. Here's a simple example
<OL>
<LI>This is line one.
<LI>This is line two.
</OL>
produces the following output:
- This is line one.
- This is line two.
|
|
Unordered Lists
|
|
Use the <UL> and the <LI> tags to create numbered lists. Here's a simple example
<UL>
<LI>This is line one.
<LI>This is line two.
</UL>
produces the following output:
- This is line one.
- This is line two.
|
|
Glossary Lists
|
|
The glossary list has three tags: the <DL> starts the list, <DT> is used for each term and <DD> is used for the definition of the term. A glossary list is useful for lists of definitions or for a list of links and desciptions of each of them.
<DL>
<DT>This is the first term.
<DD>This is the definition of the first term.
<DT>This is the second term.
<DD>This is the definition of the second term.
</DL>
produces the following output:
- This is the first term.
- This is the definition of the first term.
- This is the second term.
- This is the definition of the second term.
|
|
|
This site created and maintained by Christopher Yetman for the Amphitheater School District and is intended for the use of the employees and students of the Amphitheater School District. © 1999 by the Amphitheater School District.
|