gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
create a contact us page using html and css
- User
create a contact us page using html and css
- Assistant
Here is a basic example of a contact us page using HTML and CSS:
HTML:
code
create a contact us page using html and css
Here is a basic example of a contact us page using HTML and CSS:
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Contact Us</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<header>
<h1>Contact Us</h1>
</header>
<main>
<form action="#" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your name..." required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your email..." required>
<label for="subject">Subject:</label>
<input type="text" id="subject" name="subject" placeholder="Enter subject..." required>
<label for="message">Message:</label>
<textarea id="message" name="message" placeholder="Enter your message..." required></textarea>
<input type="submit" value="Send">
</form>
</main>
<footer>
<p>© 2021 Contact Us</p>
</footer>
</body>
</html>
CSS:
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
h1 {
margin: 0;
}
main {
padding: 50px;
text-align: center;
}
form {
display: inline-block;
text-align: left;
}
label {
display: block;
margin: 20px 0 5px;
}
input[type="text"],
input[type="email"],
textarea {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: none;
border-radius: 5px;
}
textarea {
height: 150px;
}
input[type="submit"] {
background-color: #333;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #555;
}
footer {
background-color: #ccc;
padding: 10px;
text-align: center;
}
This is just a simple example, and you can customize it to fit your needs. Don't forget to add your own email address or form processing code to make the form actually work!
Not yet included in a published release.