-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.html
56 lines (53 loc) · 1.98 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
<!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>Form Validation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="header">
<h2>Create Your Account</h2>
</div>
<form class="form" id="form">
<div class="form-control">
<label>Enter Username: </label><br>
<input type="text" id="username" placeholder="example@123" required>
</div>
<div class="form-control">
<label>Enter Password: </label><br>
<input type="password" id="password" required>
</div>
<div class="form-control">
<label>Enter Email: </label><br>
<input type="email" id="email" placeholder="[email protected]" required>
</div>
<div class="form-control">
<label>Enter Birth date: </label><br>
<input type="date" id="birthdate" required>
</div>
<div class="form-control">
<label>Enter City: </label>
<select id="city">
<option>Mumbai</option>
<option>New Delhi</option>
<option>Bangalore</option>
<option>Hyderabad</option>
</select>
</div>
<div class="form-control">
<label>Programming langugaes known</label><br>
<input type="checkbox" id="c" value="C">C<br>
<input type="checkbox" id="cpp" value="C++">C++<br>
<input type="checkbox" id="java" value="Java">Java<br>
<input type="checkbox" id="javascript" value=JavaScript>JavaScript<br>
<input type="checkbox" id="python" value="Python">Python<br>
</div>
<button type="submit">Submit</button>
</form>
<script src="form.js"></script>
</body>
</html>