|
include("ads.php");
?>
There are three main types of list.
- Ordered Lists (Numbered Lists)
- Unordered Lists (Unnumbered Lists)
- Definition Lists
Unordered Lists
Unordered lists allow you to create lists with various bullet styles.
An Unordered tag starts with the tag <UL> and end with </UL>.
Between <UL> and </UL> tag we use <LI> tag. The <LI>
tag is used to signify a list element. Below code demonstrates the unordered
list:
<HTML>
<HEAD>
<TITLE>Unordered List</TITLE>
</HEAD>
<BODY>
<UL> Oranges
<LI> Bananas
<LI> Apples
<LI> Chocolates
</UL>
</BODY>
</HTML>
The output is:
- Bananas
- Apples
- Chocolates
- Oranges
You can modify the look of the bullets by using the TYPE attribute in
the <UL> tag. The TYPE attribute supports the following values:
. For Example:
<HTML>
<HEAD>
<TITLE>Unordered List</TITLE>
</HEAD>
<BODY>
<UL>
<LI> Bananas
<LI> Apples
<LI> Chocolates
</UL>
</BODY>
</HTML>
Ordered Lists
Ordered lists allow you to create lists with various bullet styles. An
Ordered tag starts with the tag <OL> and end with </OL>. Between
<OL> and </OL> tag we use <LI> tag. The <LI> tag
is used to signify a list element. Below code demonstrates the Ordered
list:
<HTML>
<HEAD>
<TITLE>Unordered List</TITLE>
</HEAD>
<BODY>
<OL>
<LI> Bananas
<LI> Apples
<LI> Chocolates
<LI> Oranges
</OL>
</BODY>
</HTML>
output:
- Bananas
- Apples
- Chocolates
- Oranges
Modifying the Bullet
- You can modify the look of the bullets by using the TYPE or START
attributes in the <OL> tag.
- The TYPE attribute supports the following values: A, a, I, i, or 1.
- The START attribute specifies at what point to start counting from.
Below code demonstrates the usage of the TYPE and START attributes.
Definition lists
Definition lists allow you to create lists that are more like glossary
entries than hierarchies. The basic definition list involves four tags
|