-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathform.html
147 lines (125 loc) · 3.69 KB
/
form.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<html>
<head>
<script>
function add()
{
var name = document.createElement("p");
var text1 = document.createTextNode("Name Of The Company");
name.appendChild(text1);
var to = document.createElement("p");
var text2 = document.createTextNode("To");
to.appendChild(text2);
var br = document.createElement("hr");
var company = document.createElement("input");
company.setAttribute("type", "text");
company.setAttribute("placeholder", "Company Name");
var para = document.createElement("p");
var text = document.createTextNode("Duration");
para.appendChild(text);
var date1 = document.createElement("input");
date1.setAttribute("type", "month");
date1.setAttribute("value", "2018-01");
var date2 = document.createElement("input");
date2.setAttribute("type", "month");
date2.setAttribute("value", "2018-01");
var element = document.getElementById("work");
element.appendChild(name);
element.appendChild(company);
element.appendChild(para);
element.appendChild(date1);
element.appendChild(text2);
element.appendChild(date2);
element.appendChild(br);
}
</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<style>
body{
background:url("download1.jpg");
background-size:100%;
}
.round
{ border:3px solid black;
border-radius:25%;
}
.sub{
}
.form{
width:30vw;
text-align:left;
background-color:#AAA;
opacity:0.8;
border-radius:3%;
padding:3px;
}
.sub:hover
{
background-color:lightgreen;
}
.res
{
}
.res:hover{
background-color:red;
}
.add{
border-radius-50%;
}
input[type=text], select {
padding: 3px 3px;
margin: 3px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
}
input[type=email]
{
padding: 3px 3px;
margin: 3px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
.add{border-radius:50%;
background-color:lightgreen;
}
</style>
</head>
<body>
<center>
<br><br><br><br>
<h1>Regitration</h1>
<hr width="100">
<h6>Inputs Marked with * are required</h6>
<div class="form">
<form action="a.php" method="POST">
<center>
Name*:<br><input type="text" placeholder="Name" name="name" required><br><br>
Email*:<br><input type="email" placeholder="Email" name="email" oninvalid="this.setCustomValidity('-_- cheater,Please enter a valid email')" required><br><br>
Branch*:<br>
<select name="branch" required>
<option value="CSE">CSE</option>
<option value="ECE">ECE</option>
<option value="IT">IT</option>
</select><br><br>
Batch*:<br>
<select name="batch" required>
<option value="FIRSt">FIRST</option>
<option value="SECOND">SECOND</option>
<option value="THIRD">THIRD</option>
<option value="THIRD">FOURTH</option>
</select><hr>
<br>
<div id="work">
Work Experience:<br><br>Company name:<br><input type="text" placeholder="Name Of The Company" name="work-experience-name"></input><br>Duration:<br>
<input type="month" name="work-experience-duration" value="2018-01"></input>To<input type="month" name="work-experience-duration" value="2018-01"></input><hr><br></div>
<button class="btn add" type="button" onclick="add()">+</button><br><br>
GitHub Link:<br><input type="text" placeholder="Github Link"><br><br>
LinkeIn Link:<br><input type="text" placeholder="Linkedin Link" ><br><br>
<input type="submit" name="submit" class="sub btn">  <input type="reset" name="reset" class="res btn"><center>
</form>
</div>
</center>
</body>
</html>