-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRegistration_form_created_using_HTML_and_CSS.html
89 lines (77 loc) · 2.21 KB
/
Registration_form_created_using_HTML_and_CSS.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
<!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: #f2f2f2;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
padding: 30px;
width: 400px;
}
h2 {
text-align: center;
color: #007BFF;
}
form {
display: flex;
flex-direction: column;
}
label {
font-weight: bold;
margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
input[type="password"] {
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
}
input[type="submit"] {
background-color: #007BFF;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 0;
cursor: pointer;
font-size: 16px;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
input[type="submit"]:active {
background-color: #003b80;
}
</style>
</head>
<body>
<div class="container">
<h2>Registration Form</h2>
<form>
<label for="firstName">First Name:</label>
<input type="text" name="firstName" id="firstName" required>
<label for="lastName">Last Name:</label>
<input type="text" name="lastName" id="lastName" required>
<label for="email">Email:</label>
<input type="email" name="email" id="email" required>
<label for="password">Password:</label>
<input type="password" name="password" id="password" required>
<input type="submit" value="Register">
</form>
</div>
</body>
</html>