-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.html
More file actions
77 lines (64 loc) · 1.68 KB
/
list.html
File metadata and controls
77 lines (64 loc) · 1.68 KB
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 lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>List Example</title>
<style>
/* CSS for styling the lists */
/* Style for ordered list */
ol {
list-style-type: decimal;
/* Use decimal numbers (default) */
}
/* Style for unordered list */
ul {
list-style-type: disc;
/* Use filled circles (default) */
}
/* Style for list items */
li {
margin: 5px 0;
/* Add spacing between list items */
}
/* Style for definition list */
dl {
margin: 20px 0;
/* Add spacing between definition lists */
}
/* Style for definition term (dt) */
dt {
font-weight: bold;
}
/* Style for definition description (dd) */
dd {
margin: 5px 0;
/* Add spacing between definition descriptions */
}
</style>
</head>
<body>
<h1>List Example</h1>
<h2>Ordered List (Decimal Numbers)</h2>
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<h2>Unordered List (Bullets)</h2>
<ul>
<li>Item A</li>
<li>Item B</li>
<li>Item C</li>
</ul>
<h2>Definition List</h2>
<dl>
<dt>Term 1</dt>
<dd>Description for Term 1</dd>
<dt>Term 2</dt>
<dd>Description for Term 2</dd>
<dt>Term 3</dt>
<dd>Description for Term 3</dd>
</dl>
</body>
</html>