-
Notifications
You must be signed in to change notification settings - Fork 0
/
bloodDonation.html
113 lines (102 loc) · 3.29 KB
/
bloodDonation.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blood Donation Form</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: rgba(255, 61, 35, 0.7);
/* Semi-transparent white overlay */
}
.container {
max-width: 600px;
margin: 50px auto;
padding: 20px;
background-color: rgba(255, 255, 255, 0.9);
/* Semi-transparent white background */
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h2 {
margin-top: 0;
margin-bottom: 20px;
font-size: 24px;
color: #333;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
font-size: 14px;
color: #333;
}
input[type="text"],
input[type="number"],
select {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 14px;
color: #333;
}
input[type="radio"] {
margin-right: 10px;
}
input[type="submit"] {
background-color: #007bff;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="container">
<h2><a href="./bloodDonation.html">Blood Donation Form</a></h2>
<div class="form-group">
<label for="Name">Name:</label>
<input type="text" id="Name" name="Name" required>
</div>
<div class="form-group">
<label for="contact">Contact Details:</label>
<input type="text" id="contact" name="contact" required>
</div>
<div class="form-group">
<label for="sex">Sex:</label>
<select id="sex" name="sex" required>
<option value="">Please select</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
<option value="Other">Other</option>
</select>
</div>
<div class="form-group">
<label for="age">Age:</label>
<input type="text" id="age" name="age" required>
</div>
<div class="form-group">
<label for="disease">Do you have any disease?</label><br>
<input type="radio" id="disease_yes" name="disease" value="yes" required>
<label for="disease_yes">Yes:then mention:</label>
<input type="text" id="disease_description" name="disease_description">
<input type="radio" id="disease_no" name="disease" value="no" required>
<label for="disease_no">No</label>
</div>
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>