-
Notifications
You must be signed in to change notification settings - Fork 0
/
website.html
107 lines (106 loc) · 3.4 KB
/
website.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
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Static Web Page</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
width: 80%;
margin: 0 auto;
padding: 20px;
}
header {
background-color: #687ca5;
color: #fff;
padding: 10px 0;
text-align: center;
}
header h1 {
margin: 0;
font-size: 36px;
}
nav {
background-color: #5fb4be;
padding: 10px 0;
text-align: center;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 10px;
}
nav ul li a {
text-decoration: none;
color: #fff;
font-size: 18px;
cursor: pointer;
}
.content {
background-color: #fff;
padding: 20px;
margin-top: 20px;
}
.content h2 {
color: #333;
}
.content p {
line-height: 1.6;
margin-bottom: 20px;
}
footer {
background-color: #687ca5;
color: #fff;
padding: 10px 0;
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<header>
<div class="container">
<h1>Web Development</h1>
</div>
</header>
<nav>
<div class="container">
<ul>
<li><a href="#" onclick="showAlert('Home')">Home</a></li>
<li><a href="#" onclick="showAlert('About')">About</a></li>
<li><a href="#" onclick="showAlert('Services')">Services</a></li>
<li><a href="#" onclick="showAlert('Contact')">Contact</a></li>
</ul>
</div>
</nav>
<div class="container content">
<h2>What is a webpage?</h2>
<p>A web page (or webpage) is a document on the Web that is accessed in a web browser. A website typically consists of many web pages linked together under a common domain name.</p>
<p>A web page provides information to viewers, including pictures or videos to help illustrate important topics. A web page may also be used as a method to sell products or services to viewers. Multiple web pages make up a website, like our Computer Hope website.
For example, you access a web page when you click a link provided by a search engine. The Internet consists of millions of web pages, with more being added daily.</p>
</div>
<footer>
<div class="container" id="currentDate"></div>
</footer>
<script>
const currentDateElement = document.getElementById('currentDate');
const currentDate = new Date();
currentDateElement.textContent = '© 2024 Static Web Page | Today is: ' + currentDate.toDateString();
function showAlert(page) {
alert('You clicked ' + page);
}
</script>
</body>
</html>