-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay-Page.html
103 lines (88 loc) · 2.31 KB
/
display-Page.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Page with Header, Navbar, Content, and Footer</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px;
}
nav {
background-color: #555;
padding: 10px;
text-align: center;
}
nav a {
color: #fff;
text-decoration: none;
padding: 10px;
margin: 0 10px;
}
main {
padding: 20px;
margin-top: 20px;
}
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
}
#content1 {
background-color: #f2f2f2;
padding: 20px;
margin-top: 20px;
}
#content2 {
background-color: #e6f7ff;
padding: 20px;
margin-top: 20px;
}
#content3 {
background-color: #ffe6e6;
padding: 20px;
margin-top: 20px;
}
</style>
</head>
<body>
<header>
<h1>Header</h1>
</header>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Contact</a>
</nav>
<main>
<div id="content1">
<h2>Content 1</h2>
<p>This content is positioned below the header and navigation bar.</p>
</div>
<div id="content2">
<h2>Content 2</h2>
<p>This content is positioned below the first content.</p>
</div>
<div id="content3">
<h2>Content 3</h2>
<p>This content is positioned below the second content.</p>
</div>
</main>
<footer>
<p>Footer - This content is fixed at the bottom of the page.</p>
</footer>
</body>
</html>