-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSS_Task7.html
147 lines (128 loc) · 4.43 KB
/
CSS_Task7.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!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: #a00049;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.register-container {
background-color: #800040;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 500px;
color: white;
}
.form-group {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.form-group label {
width: 30%;
margin-right: 10px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
width: 70%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
.form-group input[type="radio"] {
margin-left: 10px;
margin-right: 5px;
}
.form-group .gender {
display: flex;
align-items: center;
}
.form-group .gender label {
margin-right: 10px;
}
.form-group textarea {
height: 60px;
}
.form-group .radio-group {
display: flex;
align-items: center;
}
.register-container button {
width: 100%;
padding: 10px;
border: none;
border-radius: 5px;
background-color: #fff;
color: #800040;
font-size: 16px;
cursor: pointer;
}
.register-container button:hover {
background-color: #ddd;
}
</style>
</head>
<body>
<div class="register-container">
<form>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" placeholder="your name" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="your email" required>
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" id="password" name="password" placeholder="your password" required>
</div>
<div class="form-group">
<label for="phone">Phone Number:</label>
<input type="number" id="phone" name="phone" placeholder="your phone number" required>
</div>
<div class="form-group">
<label for="gender">Gender:</label>
<div class="radio-group">
<label><input type="radio" name="gender" value="male" required> Male</label>
<label><input type="radio" name="gender" value="female" required> Female</label>
<label><input type="radio" name="gender" value="other" required> Other</label>
</div>
</div>
<div class="form-group">
<label for="language">Language:</label>
<select id="language" name="language" required>
<option value="" disabled selected>Select language</option>
<option value="english">English</option>
<option value="spanish">Spanish</option>
<option value="french">French</option>
<option value="german">German</option>
</select>
</div>
<div class="form-group">
<label for="zipcode">Zip Code:</label>
<input type="text" id="zipcode" name="zipcode" placeholder="your zip code" required>
</div>
<div class="form-group">
<label for="about">About:</label>
<textarea id="about" name="about" placeholder="Write about yourself..." required></textarea>
</div>
<button type="submit">Register</button>
</form>
</div>
</body>
</html>