-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.html
More file actions
120 lines (102 loc) · 2.74 KB
/
Copy pathlist.html
File metadata and controls
120 lines (102 loc) · 2.74 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Lists Page</title>
<style>
/* Body styling */
body {
font-family: Arial, sans-serif;
background-color: #2c3e50; /* match your nav background */
padding: 20px;
margin: 0;
}
/* Page title */
h1 {
text-align: center;
color: #ffffff;
margin-bottom: 30px;
}
/* Container for content */
.container {
width: 70%;
margin: auto;
background-color: #ffffff;
padding: 25px 30px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
border-radius: 10px;
}
h2 {
color: #34495e;
margin-bottom: 15px;
}
/* Ordered list styling */
ol {
padding-left: 20px;
margin-bottom: 25px;
list-style-position: inside; /* Fixes number alignment */
}
ol li {
line-height: 1.6;
padding: 5px 0; /* reduce extra space */
}
/* Unordered list styling */
ul {
padding-left: 20px;
list-style-position: inside; /* aligns bullets properly */
}
ul li {
padding: 5px 0;
line-height: 1.6;
}
/* Navigation bar */
nav {
background-color: #2c3e50;
text-align: center;
padding: 10px 0;
}
nav a {
color: white;
text-decoration: none;
margin: 0 15px;
font-weight: bold;
font-size: 16px;
}
nav a:hover {
color: #f1c40f;
transition: 0.3s;
}
</style>
</head>
<body>
<nav>
<a href="index.html" title="Home">Home</a>
<a href="list.html" title="Lists Example">Lists</a>
<a href="Tablepage.html" title="Table">Tables</a>
<a href="formating.html" title="Text Formatting Reference">Formatting</a>
<a href="form.html" title="Form Page">Form</a>
<a href="About.html" title="About Page">About</a>
</nav>
<h1>HTML Lists Example</h1>
<div class="container">
<!-- Ordered List -->
<h2>Steps to Complete Student Registration</h2>
<ol>
<li>Fill in the registration form</li>
<li>Submit required documents</li>
<li>Pay registration fees</li>
<li>Receive confirmation email</li>
<li>Start attending classes</li>
</ol>
<!-- Unordered List -->
<h2>Student Activities</h2>
<ul>
<li>Sports</li>
<li>Music and Dance</li>
<li>Debate Club</li>
<li>Technology Club</li>
<li>Community Service</li>
</ul>
</div>
</body>
</html>