-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContact_form.html
More file actions
86 lines (69 loc) · 1.89 KB
/
Contact_form.html
File metadata and controls
86 lines (69 loc) · 1.89 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
body {
background-image: url(image.jpg);
backgroud :linear-gradient(rgba(0,0,50,0.5),rgba(0,0,50,0.5));
background-size: cover;
background-position: center;
}
*
{
box-sizing: border-box;
}
input[type=text], select, textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical;
}
.submit_btn {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.submit_btn:hover {
background-color: #45a049;
}
.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}
</style>
</head>
<body>
<br>
<center><h3 style="font-size: 8vw; color: white;">Contact Form</h3></center>
<br><br><br>
<div class="container">
<form action="Contact_form.php" method="post">
<label>First Name</label>
<input type="text" id="fname" name="firstname" placeholder="Your First name.." required="">
<label>Last Name</label>
<input type="text" id="lname" name="lastname" placeholder="Your Last name..">
<label>Username</label>
<input type="text" id="lname" name="username" placeholder="Your user name.." required="">
<label for="country">Country</label>
<select id="country" name="country">
<option value="India">India</option>
<option value="australia">Australia</option>
<option value="canada">Canada</option>
<option value="usa">USA</option>
</select>
<label for="subject">Subject</label>
<textarea id="subject" name="subject" placeholder="Write something.." style="height:200px" required=""></textarea>
<button class="submit_btn" type="submit" value="Submit">Submit</button>
</form>
</div>
</body>
</html>