-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlists.html
77 lines (56 loc) · 1.54 KB
/
lists.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
ul.a {list-style-type:circle;}
ul.b {list-style-type:square;}
ul.pic {list-style-image:url('http://www.w3schools.com/css/sqpurple.gif');}
ol.c {list-stype-type:upper-roman;}
ol.d {list-style-type:lower-alpha;}
</style>
<title>CSS Lists</title>
</head>
<body>
<h1>CSS Lists</h1>
<h4>CSS lists properties allow you to:</h4>
<ul>
<li>Set different list item markers for ordered lists</li>
<li>Set different list item markers for unordered lists</li>
<li>Set an image as the list item marker</li>
</ul>
<h4>There are 2 types of lists:</h4>
<ul>
<li>unordered lists - the list items are marked with bullets</li>
<li>ordered lists - the list items are marked with numbers or letters</li>
</ul>
<h4>It is possible to change the marker on both types of lists</h4>
<p>Example of unordered lists:</p>
<ul class="a">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>
<ul class="b">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>
<p>Example of ordered lists:</p>
<ol class="c">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ol>
<ol class="d">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ol>
<h4>You can also use an limage as the list item marker</h4>
<ul class="pic">
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>
</body>
</html>