create a dark-themed 404 screen using html, css and javascript
- User
create a dark-themed 404 screen using html, css and javascript
- Assistant
Sure, here's a simple example of a dark-themed 404 error page:
HTML:
<!DOCTYPE html> <html> <head> <title>404 Error</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="container"> <h1 class="code">404</h1> <p class="text">Page Not Found</p> <a class="btn" href="#">Go Back</a> </div> </body> </html>CSS (style.css):
body { background-color: #2c2c2c; color: #fff; font-family: Arial, sans-serif; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { text-align: center; } .code { font-size: 80px; margin: 0; } .text { font-size: 20px; } .btn { display: inline-block; margin-top: 20px; color: #fff; background-color: #ff6347; padding: 10px 20px; text-decoration: none; border-radius: 5px; transition: background-color 0.3s; } .btn:hover { background-color: #ff4500; }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.