-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontact.html
38 lines (38 loc) · 1.34 KB
/
contact.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
<!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="contact.css">
</head>
<body>
<div class="container">
<h1>Contact Us</h1>
<form id="contactForm">
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required placeholder="John Doe">
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required placeholder="[email protected]">
</div>
<div class="form-group">
<label for="message">Message:</label>
<textarea id="message" name="message" rows="6" required placeholder="Your message here..."></textarea>
</div>
<div class="form-group">
<button type="submit">Send Message</button>
</div>
</form>
</div>
<script>
document.getElementById('contactForm').addEventListener('submit', function(event) {
event.preventDefault();
alert('Form submitted!');
// Implement form submission logic here
});
</script>
</body>
</html>