My First Page: File:///C:/Inetpub/Wwwroot/Classb - HTM 1/3
My First Page: File:///C:/Inetpub/Wwwroot/Classb - HTM 1/3
Lists HTML provides a way to create both an ordered list (with elements counting up, 1, 2, 3...) and an unordered list
with bullets instead of numbers. Lists are a good way to formalize a list of items and let the HTML styling do the work for
you. Ordered lists Here is an example of how to create an ordered list:
1. First item
2. Second item
3. Third item
Ordered lists have a "type" attribute which defines the numbering convention to use. To count using numbers, use
type="1":
1. First item
2. Second item
3. Third item
A. First item
B. Second item
C. Third item
a. First item
b. Second item
c. Third item
I. First item
file:///C:/Inetpub/wwwroot/classB.htm 1/3
II. Second item
III. Third item
i. First item
ii. Second item
iii. Third item
First item
Second item
Third item
To change the list style attributes, we can use the CSS attribute called list-style-type. The available types are: disc circle
square none Here is an example of the disc list style type:
First item
Second item
Third item
First item
Second item
Third item
First item
Second item
Third item
First item
file:///C:/Inetpub/wwwroot/classB.htm 2/3
Second item
Third item
file:///C:/Inetpub/wwwroot/classB.htm 3/3