Skip to content

Commit c228aa7

Browse files
committed
commit for final Lab 5_1
1 parent 1b28897 commit c228aa7

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

healthAnalysis/health_contact.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Contact Us</title>
6+
<link rel="stylesheet" href="./health_analysis.css">
7+
<style>
8+
body {
9+
text-align: center;
10+
}
11+
/* Some basic styling for demonstration purposes */
12+
#contactForm {
13+
max-width: 400px;
14+
margin: 0 auto;
15+
}
16+
17+
#contactForm input,
18+
#contactForm textarea {
19+
width: 100%;
20+
margin-bottom: 15px;
21+
padding: 8px;
22+
}
23+
24+
#contactForm button {
25+
padding: 10px 20px;
26+
background-color: #007bff;
27+
color: white;
28+
border: none;
29+
cursor: pointer;
30+
}
31+
32+
#contactForm button:hover {
33+
background-color: #0056b3;
34+
}
35+
</style>
36+
</head>
37+
<body>
38+
<nav>
39+
<h1>Health Analysis Census</h1>
40+
<ul>
41+
<li><a href="./index.html" id="home">Home </a></li>
42+
<li><a href="./health_contact.html" id="contact">Contact Us </a></li>
43+
</li>
44+
45+
</ul>
46+
</nav>
47+
<h1>Contact Us</h1>
48+
<p>Feel free to contact us to know more about your conditions and for treatment methods.</p>
49+
50+
<form id="contactForm">
51+
<div>
52+
<label for="name">Name</label>
53+
<input type="text" id="name" name="name" required>
54+
</div>
55+
<div>
56+
<label for="email">Email</label>
57+
<input type="email" id="email" name="email" required>
58+
</div>
59+
<div>
60+
<label for="condition">Condition</label>
61+
<input type="text" id="condition" name="condition" required>
62+
</div>
63+
<div>
64+
<label for="message">Message</label>
65+
<textarea id="message" name="message" rows="5" required></textarea>
66+
</div>
67+
<button type="submit" onclick="thankyou()">Submit</button>
68+
</form>
69+
<script>
70+
function thankyou(){
71+
alert('Thank you for contacting us!')
72+
}
73+
</script>
74+
</body>
75+
</html>

0 commit comments

Comments
 (0)