I would like to create a web page that has a contact form. Use only HTML, CSS, and JS to…
- User
I would like to create a web page that has a contact form. Use only HTML, CSS, and JS to produce one.
Assistant
Here is an example of a basic contact form with HTML, CSS and JavaScript:
HTML:
<form id="contactForm"> <label for="name">Name:</label> <input type="text" id="name"><br><br> <label for="email">Email:</label> <input type="email" id="email"><br><br> <label for="message">Message:</label><br> <textarea id="message"></textarea><br><br> <input type="submit" value="Submit"> </form>CSS:
form { width: 400px; margin: 0 auto; } label { display: block; margin-bottom: 10px; } input, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 3px; } input[type="submit"] { background-color: blue; color: white; cursor: pointer; }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.