claude-2.0· Anthropic Arena Human Preference 55K
code a stunning website using html css and javascript
- User
code a stunning website using html css and javascript
- Assistant
Here is some code to create a stunning website using HTML, CSS and JavaScript:
HTML:
<!DOCTYPE html> <html> <head> <title>My Stunning Website</title> <link rel="stylesheet" type="text/css" href="styles.css"> </head> <body> <header> <h1>Welcome to My Website</h1> <nav> <a href="#">Home</a> <a href="#">About</a> <a href="#">Contact</a> </nav> </header> <main> <h2>Website Content</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed porttitor lectus nibh. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Mauris blandit aliquet elit, eget tincidunt nibh pulvinar a. Vivamus suscipit tortor eget felis porttitor volutpat. Quisque velit nisi, pretium ut lacinia in, elementum id enim.</p> <img src="image.jpg" alt="Image"> <button id="myButton">Click Me!</button> </main> <footer> <p>© Copyright 2021</p> </footer> <script src="script.js"></script> </body> </html>CSS:
body { font-family: Arial, sans-serif; margin: 0; padding: 0; } header { background-color: #333; color: #fff; padding: 20px; } nav a { color: #fff; text-decoration: none; margin-right: 10px; } main { max-width: 800px; margin: 20px auto; padding: 20px; } img { max-width: 100%; } button { padding: 10px 20px; background-color: #4CAF50; color: #fff; border: none; border-radius: 5px; } footer
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.