<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Not Found | Webhero</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
color: #333;
background-color: #f1f1f1;
margin: 0;
padding: 0;
}
.container {
margin: 100px auto;
max-width: 600px;
padding: 20px;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
color: #b62528;
}
a {
color: #007bff;
text-decoration: none;
margin: 10px;
display: inline-block;
}
a:hover {
text-decoration: underline;
}
footer {
background-color: #267ae9;
color: #fff;
padding: 10px 0;
margin-top: 20px;
position: relative;
width: 100%;
}
.error-details {
margin-top: 20px;
color: #666;
line-height: 1; /* Adjust line-height for better spacing */
}
.error-url {
display: block; /* Makes the span act like a block element to control spacing */
margin: 10px 0; /* Adds margin around the span for spacing */
font-weight: bold; /* Ensures the text is bold */
}
</style>
</head>
<body>
<div class="container">
<h1>404 - Page Not Found</h1>
<div class="error-details">
<p>The requested URL:<span class="error-url" id="error-url"></span>was not found on this website.</p>
</div>
<a href="/">Visit website homepage</a> |
<a href="javascript:history.back()">Back to previous page</a>
</div>
<footer>
<p>Powered by Webhero | <a href="https://webhero.com" style="color: #fff;">Learn More About Our Services</a></p>
</footer>
<script>
// Extract and display the full attempted URL
document.addEventListener('DOMContentLoaded', function() {
var fullUrl = window.location.href;
document.getElementById('error-url').textContent = fullUrl;
});
</script>
</body>
</html>