-
Notifications
You must be signed in to change notification settings - Fork 0
/
secondpage.html
111 lines (109 loc) · 3.12 KB
/
secondpage.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Personal Details</title>
</head>
<body>
<!--creating a form for registration-->
<div class="main">
<div class="register">
<h2>Register Here!</h2>
<form id="register" method="post">
<label>First Name :</label><br>
<input type="text" name="lname" id="name" placeholder="Enter Your First Name">
<br><br>
<label>Last Name : </label><br>
<input type="text" name="lname" id="name" placeholder="Enter Your Last Name">
<br><br>
<label>Your Age :</label><br>
<input type="number" name="age" id="name" placeholder="How old are You">
<br><br>
<label>Enter Your Email Address</label><br>
<input type="email" name="email" id="name" placeholder="Enter Your Valid Email">
<br><br>
<label>Gender :</label>
<br>
<input type="radio" name="gender" id="male">
<span id="male">Male</span>
<input type="radio" name="gender" id="female">
<span id="female">Female</span>
<br><br>
<button onclick="hello()" class="submit"><b>Submit</b></button>
</form>
</div>
</div>
<script src="main.js"></script>
<style>
*{
margin: 0;
padding: 0;
}
body{
width: 100%;
height: 100vh;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(images/secondpage.jpg);
background-size: cover;
}
div.main{
width: 400px;
margin: 100px auto 0px auto;
}
h2{
text-align: center;
padding: 20px;
font-family: sans-serif;
}
div.register{
background-color: rgba(0,0,0,0.5);
width: 100%;
font-size: 18px;
border-radius: 10px;
border: 1px soid rgba(255,255,255,0.3);
box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
color: #fff;
}
form#register{
margin: 40px;
}
label{
font-family: sans-serif;
font-size: 18px;
font-style: bold;
}
input#name{
width: 300px;
border: 1px solid #ddd;
border-radius: 3px;
outline: 0;
padding: 7px;
background-color: #fff;
box-shadow: inset 1px 1px 5px rgba(0,0,0,0.3);
}
.submit{
width: 200px;
padding: 7px;
margin-left: 50px;
font-size: 16px;
font-family: sans-serif;
font-weight: 600;
border: none;
border-radius: 3px;
background-color: rgba(146, 151, 150, 0.68);
color: rgb(212, 207, 207);
cursor: pointer;
border: 1px solid rgba(255,255,255,0.3);
box-shadow: 1px 1px 5px rgba(0,0,0,0.3);
margin-bottom: 30px;
}
label,span,h2{
text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}
</style>
</body>
</html>