-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathform.html
76 lines (71 loc) · 2.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
</head>
<body>
<h1>Form tutorial</h1>
<iframe width="560" height="315" src="https://www.youtube.com/embed/ILORLbG6iQg?si=iECxHDggmedk_PTI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<form id="myForm" onsubmit="return validateForm()">
<label for="username">Username:</label>
<input type="text" id="username" name="username"><br><br>
<label for="email">Email:</label>
<input type="text" id="email" name="email"><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password"><br><br>
<input type="submit" value="Submit">
</form>
<form>
<fieldset>
<legend>Personal info</legend>
<label for="first_name">First Name</label><br>
<input type="text" id="first_name" placeholder="Rajat" name="first_name" required><br>
<label for="last_name" >Last Name</label><br>
<input type="text" id="last_name" placeholder="Jain" name="last_name">
<br>
<label for="email" >Email</label><br>
<input type="email" id="email">
<br>
<label for="number" >Number</label><br>
<input type="number" id="number">
</fieldset>
<div>
<h4>Select your response</h4>
<label for="res1">No</label>
<input type="radio" name="res" id="res1" value="no">
<label for="res2">Yes</label>
<input type="radio" name="res" id="res2" value="yes">
</div>
<div>
<p>Which vehicle you have</p>
<input type="checkbox" id="vehicle1" name="vehicle" value="Bike">
<label for="vehicle1" >Bike</label>
<br>
<input type="checkbox" id="vehicle2" name="vehicle" value="Car">
<label for="vehicle2">Car</label>
<br>
<input type="checkbox" id="vehicle3" name="vehicle" value="Truck">
<label for="vehicle3" >Truck</label>
<br>
<select name="cars" id="cars" multiple size="3">
<option value="volvo">volvo</option>
<option value="abc">abc</option>
<option value="xyz">xyz</option>
<option value="audi" selected>audi</option>
<option value="my">my</option>
</select>
<br>
<textarea rows="10" cols="30"></textarea>
<input type="">
<br>
<button>Press Me</button>
<div>
<input type="reset">
<input type="submit">
</div>
</div>
</form>
</body>
<script src="formScript.js"> </script>
</html>