Create a simple HTML webpage with a greeting message and a background color of your…
- User
Create a simple HTML webpage with a greeting message and a background color of your choice.
Assistant
Here's a simple HTML webpage with a greeting message and a light blue background:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Welcome Page</title> <style> body { background-color: #87CEEB; font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .greeting { text-align: center; background-color: white; padding: 40px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } h1 { color: #333; margin-bottom: 10px; } p { color: #666; font-size: 18px; } </style> </head> <body> <div class="greeting"> <h1>Welcome to My Website!</h1> <p>Hello there! I hope you're having a wonderful day.</p> </div> </body> </html>This webpage features:
- A sky blue background color (#87CEEB)
- A centered greeting message in a white card with rounded corners
- The greeting includes "Welcome to My Website!" as the main heading
- A friendly message below the heading
- Clean, modern styling with a subtle shadow effect on the card
You can save this code in a file with a
.htmlextension (likegreeting.html) and open it in any web browser to see the result.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.