-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTMLform.html
More file actions
89 lines (88 loc) · 2.79 KB
/
Copy pathHTMLform.html
File metadata and controls
89 lines (88 loc) · 2.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forms</title>
</head>
<style>
body{
font-family: Arial, Helvetica, sans-serif;
background-image: url(background.png);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
label{
display: block;
margin-bottom: 10px;
}
div{
background-color: rgba(255, 255, 255, 0.751);
border-radius: 10px;
padding: 50px;
width: 400px;
}
input[type="text"], input[type="email"],input[type="password"],select, textarea{
width: 100%;
padding: 10px;
border: none;
border-radius: 5px;
}
input[type="submit"], input[type="reset"]{
background-color: rgb(231, 19, 19);
color: white;
padding: 10px 20px;
border-radius: 20px;
border: none;
translate:0.5s;
}
input:focus, text-area:focus, select:focus{
background-color: antiquewhite;
}
input[type="submit"]:hover, input[type="reset"]:hover{
background-color: rgb(253, 23, 23);
transform: scale(1.05);
cursor: pointer;
}
h2{
text-align: center;
}
</style>
<body>
<div>
<form action="abc.php" method="post">
<h2>Welcome To FaceBook Web Application</h2>
<label for="name">Name:</label>
<input type="text" placeholder="First name and Last name" id="name"><br>
<label for="email">Email:</label>
<input type="email" id="name"><br>
<label for="cities">Select City</label>
<select name="cities" id="cities">
<option value="Select">Select</option>
<option value="Ap">Ap</option>
<option value="Ts">Ts</option>
<option value="Tn">Tn</option>
<option value="Delhi">Delhi</option>
<option value="Mumbai">Mumbai</option>
</select><br>
<label for="address">Address:</label>
<textarea name="" id="" cols="30" rows="5"></textarea><br>
<label for="gender">Gender:</label>
<input type="radio" value="male"> Male
<input type="radio" value="female"> Female
<input type="radio" value="others"> Others<br>
<label for="password">Password</label>
<input type="password"><br>
<label for="upload">Upload file:</label>
<input type="file"><br> <br>
<input type="submit">
<input type="reset">
</form>
</div>
</body>
</html>