-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
71 lines (64 loc) · 1.75 KB
/
Copy path404.html
File metadata and controls
71 lines (64 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - Page Not Found</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0; /* Background color of the page */
margin: 0;
padding: 0;
}
#header {
text-align: center;
background-color: #ff7f00; /* Header background color (Orange) */
padding: 20px 0;
margin-bottom: 20px;
color: #fff; /* Header text color (White) */
font-size: 24px;
}
#content {
text-align: center;
margin-top: 100px; /* Margin from the top of the page */
}
#error-code {
font-size: 36px;
color: #ff5252; /* Error code color (Red) */
}
#message {
font-size: 18px;
color: #333; /* Message text color (Dark Gray) */
}
button {
display: block;
margin: 20px auto; /* Center aligns the button */
background-color: #2196f3; /* Button background color (Blue) */
color: #fff; /* Button text color (White) */
border: none;
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
border-radius: 5px;
}
</style>
</head>
<body>
<!-- Header -->
<div id="header">404 - Page Not Found</div>
<!-- Content -->
<div id="content">
<div id="error-code">404</div>
<div id="message">Oops! The page you're looking for could not be found.</div>
<button onclick="goToHomepage()">Go to Homepage</button>
</div>
<!-- JavaScript section -->
<script>
// Function to redirect to homepage
function goToHomepage() {
window.location.href = 'index.html'; // Modify the URL if needed
}
</script>
</body>
</html>