-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS_Task7.html
More file actions
151 lines (144 loc) · 4.29 KB
/
Copy pathCSS_Task7.html
File metadata and controls
151 lines (144 loc) · 4.29 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Task7</title>
<style>
* {
margin: 0;
}
.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
background-color: #B03060;
}
.container h1 {
color: white;
font-family: sans-serif;
margin: 20px;
}
.registartion-form {
display: flex;
justify-content: center;
align-items: center;
width: 600px;
color: rgb(255, 255, 255);
font-size: 18px;
font-family: sans-serif;
background-color: #5e0034;
padding: 20px;
}
.registartion-form input,
.registartion-form select,
.registartion-form textarea {
border: none;
padding: 5px;
margin-top: 10px;
font-family: sans-serif;
}
.registartion-form input:focus,
.registartion-form textarea:focus {
box-shadow: 3px 3px 10px rgb(228, 228, 228),
-3px -3px 10px rgb(224, 224, 224);
}
.registartion-form .submit {
width: 100%;
padding: 8px 0;
font-size: 20px;
color: rgb(44, 44, 44);
background-color: #ffffff;
border-radius: 5px;
}
.registartion-form .submit:hover {
box-shadow: 3px 3px 6px rgb(255, 214, 176);
}
</style>
</head>
<body>
<div class="container">
<h1>HTML registration form with verification</h1>
<form
name="registration"
class="registartion-form"
onsubmit="return formValidation()"
>
<table>
<tr>
<td><label for="name">Name:</label></td>
<td>
<input
type="text"
name="name"
id="name"
placeholder="your name"
/>
</td>
</tr>
<tr>
<td><label for="email">Email:</label></td>
<td>
<input
type="text"
name="email"
id="email"
placeholder="your email"
/>
</td>
</tr>
<tr>
<td><label for="password">Password:</label></td>
<td><input type="password" name="password" id="password" /></td>
</tr>
<tr>
<td><label for="phoneNumber">Phone Number:</label></td>
<td><input type="number" name="phoneNumber" id="phoneNumber" /></td>
</tr>
<tr>
<td><label for="gender">Gender:</label></td>
<td>
Male: <input type="radio" name="gender" value="male" /> Female:
<input type="radio" name="gender" value="female" /> Other:
<input type="radio" name="gender" value="other" />
</td>
</tr>
<tr>
<td><label for="language">language</label></td>
<td>
<select name="language" id="language">
<option value="">Select language</option>
<option value="English">English</option>
<option value="Spanish">Spanish</option>
<option value="Hindi">Hindi</option>
<option value="Arabic">Arabic</option>
<option value="Russian">Russian</option>
</select>
</td>
</tr>
<tr>
<td><label for="zipcode">Zip Code:</label></td>
<td><input type="number" name="zipcode" id="zipcode" /></td>
</tr>
<tr>
<td><label for="about">About:</label></td>
<td>
<textarea
name="about"
id="about"
placeholder="Write about yourself..."
></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" class="submit" value="Register" />
</td>
</tr>
</table>
</form>
</div>
</body>
</html>