-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHTML_Task_8.html
98 lines (93 loc) · 3.25 KB
/
HTML_Task_8.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration Form</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f3f4f6;
margin: 0;
padding: 0;
}
.container {
background-color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
width: 800px;
height: 700px;
margin: 50px auto;
padding: 20px;
border-radius: 10px;
}
h2 {
font-size: 24px;
margin-bottom: 30px;
}
.input-field {
width: 60%;
padding: 10px;
margin: 10px 15px;
border: 1px solid #ccc;
border-radius: 4px;
}
.button {
width: 100%;
background-color: #1877f2;
color: white;
padding: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 20px;
}
.button:hover {
background-color: #1465c8;
}
#newsletter{
margin-top: 15px;
}
</style>
</head>
<body>
<div class="container">
<h2>Registration Form</h2>
<form id="registrationForm">
<label for="First Name">First Name</label>
<input type="text" class="input-field" placeholder="First Name" required>
<br>
<label for="Last Name">Last Name</label>
<input type="text" class="input-field" placeholder="Last Name" required>
<br>
<label for="Email">Email</label>
<input type="email" class="input-field" placeholder="Email" required>
<br>
<label for="Password">Password</label>
<input type="password" class="input-field" placeholder="Password" required>
<br>
<label for="Confirm Password">Confirm Password</label>
<input type="password" class="input-field" placeholder="Confirm Password" required>
<br>
<label for="gender">Gender:</label>
<select id="gender" class="input-field" required>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
<br>
<label for="Address">Address</label>
<input type="Addrees" id="Address" class="input-field" required placeholder="Your Address">
<br>
<label for="birthdate">Date of Birth:</label>
<input type="date" id="birthdate" class="input-field" required>
<br>
<label for="country">Country:</label>
<input type="text" id="country" class="input-field" required placeholder="Country Name">
<br>
<label for="newsletter">Subscribe to Newsletter:</label>
<input type="checkbox" id="newsletter">
<button type="submit" class="button">Register</button>
</form>
</div>
</body>
</html>