用html 写一个404 Notfound 页面
时间: 2023-12-18 08:05:19 浏览: 60
当然,我可以帮你创建一个简单的 404 Not Found 页面。以下是一个基本的 HTML 代码示例:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 Not Found</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 50px;
}
h1 {
font-size: 36px;
margin-bottom: 30px;
}
p {
font-size: 18px;
margin-bottom: 30px;
}
</style>
</head>
<body>
<h1>404 Not Found</h1>
<p>Sorry, the page you are looking for cannot be found.</p>
</body>
</html>
```
你可以将以上代码保存为一个 `.html` 文件,然后在浏览器中打开该文件,即可看到一个简单的 404 Not Found 页面。你可以根据需要自定义样式和页面内容。希望对你有所帮助!如果你有其他问题,请随时提问。