Make an html file with a single button
- User
Make an html file with a single button
Assistant
Here's a simple HTML file with a single button:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Button Example</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; font-family: Arial, sans-serif; } button { padding: 10px 20px; font-size: 16px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; } button:hover { background-color: #45a049; } </style> </head> <body> <button onclick="alert('Button clicked!')">Click Me</button> </body> </html>This HTML file includes:
- A single button centered on the page
- Basic styling to make the button look nice
- A simple JavaScript onclick event that shows an alert when clicked
- Responsive design that works on different screen sizes
You can save this code as
button.htmland open it in any web browser.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.