-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContacts.html
121 lines (103 loc) · 2.8 KB
/
Contacts.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Contact Us</h1>
</header>
<main>
<section id="contact-form">
<h2>Send Us a Message</h2>
<form action="/submit_form" method="post">
<label for="name">Full 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="subject">Subject</label>
<input type="text" id="subject" name="subject" required>
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
<button type="submit">Submit</button>
</form>
</section>
<section id="contact-info">
<h2>Our Contact Information</h2>
<p><strong>Address:</strong> 1234 Street Name, City, Country</p>
<p><strong>Phone:</strong> +123 456 7890</p>
<p><strong>Email:</strong> [email protected]</p>
</section>
</main>
<footer>
<p>© 2024 Your Company. All rights reserved.</p>
</footer>
</body>
</html>
AI-generated code. Review and use carefully. More info on FAQ.
Explanation:
Header: Contains the main heading for the contact page.
Main Content: Divided into two sections:
Contact Form: A form where users can enter their name, email, subject, and message.
Contact Information: Displays the company’s address, phone number, and email.
Footer: Contains copyright information.
CSS Styling (Optional)
You can add the following CSS to style the contact page:
CSS
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
header, footer {
background-color: #333;
color: white;
text-align: center;
padding: 1em 0;
}
main {
padding: 20px;
}
h1, h2 {
color: #333;
}
form {
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label {
display: block;
margin-top: 10px;
}
input, textarea {
width: 100%;
padding: 10px;
margin-top: 5px;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
background-color: #333;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
}
button:hover {
background-color: #555;
}
#contact-info {
margin-top: 20px;
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}