gpt-4-turbo-2024-04-09· OpenAI
WildChat-4.8M (AI2)
Generate a professional html code of contact us page to my blog PlantWhisper
- User
Generate a professional html code of contact us page to my blog PlantWhisper
- Assistant
Generate a professional html code of contact us page to my blog PlantWhisper
Here is a simple yet professional HTML code for a "Contact Us" page tailored for your blog, PlantWhisper. This includes basic HTML structure, CSS for styling, and a simple form for users to fill out. Note that the form action attribute should point to a server-side script that handles the form submission, which you'll need to implement separately.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us - PlantWhisper</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
}
.container {
background: white;
padding: 20px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
border-radius: 8px;
margin-top: 50px;
}
h1 {
color: #37a54e;
}
form {
display: flex;
flex-direction: column;
}
label {
margin-bottom: 5px;
color: #333;
}
input[type="text"],
input[type="email"],
textarea {
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ddd;
border-radius: 4px;
}
button {
background-color: #37a54e;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #2e8b43;
}
</style>
</head>
<body>
<div class="container">
<h1>Contact Us</h1>
<p>If you have any questions, please don't hesitate to reach out.</p>
<form action="submit_form.php" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="message">Message:</label>
<textarea id="message" name="message" rows="4" required></textarea>
<button type="submit">Send Message</button>
</form>
</div>
</body>
</html>
div element with CSS styling that includes a shadow and rounded borders for a sleek look.id.Make sure to replace "submit_form.php" with the actual script that processes the form submissions. You may need to set this up on your server using a backend language like PHP or through various backend platforms like Node.js.
Not yet included in a published release.