-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss_task7.html
More file actions
126 lines (117 loc) · 3.84 KB
/
css_task7.html
File metadata and controls
126 lines (117 loc) · 3.84 KB
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
<!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: #8B1C40;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: #5A0E27;
padding: 30px;
border-radius: 10px;
width: 400px;
color: white;
}
.form-group {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
}
label {
width: 120px;
}
input, select, textarea {
width: 65%;
padding: 5px;
border-radius: 5px;
border: none;
align-items:center;
}
select {
width: 270px;
padding: 5px;
border-radius: 5px;
border: none;
align-items:center;
}
.gender {
display: flex;
align-items: center;
gap: 17px;
width: 270px;
}
button {
width: 100%;
padding: 10px;
margin-top: 10px;
background-color: white;
color: black;
border: none;
cursor: pointer;
font-size: 16px;
font-weight: bold;
border-radius: 5px;
}
button:hover {
background-color: #ccc;
}
</style>
</head>
<body>
<div class="container">
<form>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" placeholder="your name">
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" placeholder="your email">
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" id="password">
</div>
<div class="form-group">
<label for="phone">Phone Number:</label>
<input type="text" id="phone">
</div>
<div class="form-group">
<label>Gender:</label>
<div class="gender">
<input type="radio" name="gender" value="male"> Male
<input type="radio" name="gender" value="female"> Female
<input type="radio" name="gender" value="other"> Other
</div>
</div>
<div class="form-group">
<label for="language">Language:</label>
<select id="language">
<option>Select language</option>
<option value="english">English</option>
<option value="hindi">Hindi</option>
<option value="spanish">Spanish</option>
</select>
</div>
<div class="form-group">
<label for="zipcode">Zip Code:</label>
<input type="text" id="zipcode">
</div>
<div class="form-group">
<label for="about">About:</label>
<textarea id="about" placeholder="Write about yourself..."></textarea>
</div>
<button type="submit">Register</button>
</form>
</div>
</body>
</html>