-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsign up.html
109 lines (101 loc) · 2.29 KB
/
sign up.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
<!DOCTYPE html>
<html>
<head>
<title>Sign Page</title>
<script>
function displayMessageReset()
//this message will show when we click on Reset Button.
{
alert("Alert! You Have Clicked On Reset Button, Please Fill Your Data Again");
}
//this message will show when we click on Submit Button//
function displayMessageSuccessfully()
{
var x;
x=confirm("Do You Want To Sumbit Your Data, Please Fill All Fields");
if(x==1)
{document.write("<b>Thankyou! You Have Successfully Signed Up<b>");}
}</script>
<style>
body{
background-image: url("3.jpg");
background-repeat: no-repeat;
background-size: cover;
height: 100%;
}
.details{
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
color: yellow;
font-size: 25px;
font-family: cursive;
}
input[type=text],input[type=radio],input[type=number],input[type=password]{
border-radius: 100px;
color: red;
width: 250px;
height: 25px;
margin-left: 10px;
text-align: center;
line-height: 20px;
background-color: white;
color: black;
text-transform: uppercase;
}
input[type=submit], input[type=reset]
{
border-radius: 100px;
text-align: center;
width:125px;
height:30px;
line-height: 20px;
color:white;
background-color: black;
margin-left: 10px;
}
#signup{
color: yellowgreen;
font-size: 90px;
font-family: sans-serif;
font-weight: bold;
position: absolute;
left:0;
top: 0;
transform: translateY(250px);
margin-left:50px;
}
form{
height: 100px;
}
</style>
</head>
<body>
<div id="signup">SIGN UP</div>
<form >
<div class="details">
<div>
<input type="text" name="Fname" required placeholder="First Name">
</div>
<div>
<input type="text" name="Mename" required placeholder="Middle Name">
</div>
<div>
<input type="text" name="Lname" required placeholder="Last Name">
</div>
<div>
<input type="text" name="number" required placeholder="Mobile Number">
</div>
<div>
<input type="password" name="password" required placeholder="Password">
</div>
<input class="btn" type="submit" value="Sign Up"
onclick="displayMessageSuccessfully()" required>
<input class="btn" type="reset" value="Reset"
onclick="displayMessageReset()" required>
</div>
</form>
</body>
</html>