-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms check.html
87 lines (81 loc) · 2.96 KB
/
forms check.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
<!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>Forms check</title>
</head>
<body>
<h1>Form check</h1>
<form action="/cat">
<label for="username">Enter a Username:</label>
<input id="username" type="text" placeholder="Username">
<br><br>
<label for="password">Enter your password:</label>
<input id="password" type="password" placeholder="Password">
<br><br>
<label for="colour">Change the colour:</label>
<input id="colour" type="color">
<br><br>
<label for="number">Enter the number:</label>
<input id='number' type="number" placeholder=" Enter a number">
<br><br>
<button>Submit</button>
</form>
<hr>
<h2>Hijacking Searches</h2>
<h3>Searching Reddit</h3>
<form action="https://www.reddit.com/search">
<input type="text" name="q">
<button>Search Reddit</button>
</form>
<h3>Searching Google</h3>
<form action="https://www.google.com/search">
<input type="text" name='q'>
<button>Search Google</button>
</form>
<h3>Searching Youtube</h3>
<form action="https://www.youtube.com/results">
<input type="text" name="search_query">
<button>Search Youtube</button>
</form>
<h2>More stuff with inputs</h2>
<form action="/birds">
<input type="checkbox" name="agree_tos" id="agree" checked>
<label for="agree">I agree to everything</label>
<p>
<label for="xs">XS:</label>
<input type="radio" name="dog" id="xs" value="xs">
<label for="s">S</label>
<input type="radio" name="dog" id="s" value="s">
<label for="m">M</label>
<input type="radio" name="dog" id="m" value="m">
</p>
<p>
<label for="meal">Please select a meal type</label>
<select name="meal" id="meal">
<option value="" selected>Please choose a meal type</option>
<option value="fish">Fish</option>
<option value="veg">Vegan</option>
<option value="Meat">Meat options</option>
</select>
</p>
<p>
<label for="garri">Amount of garri available:</label>
<input type="range" name="garri id="garri" value = "7"min="1"max="10">
</p>
<p>
<label for="requests">Any special requests?</label><br>
<textarea name="write_here" id="" cols="30" rows="10" placeholder="Type it here"></textarea>
</p>
<button>Submit</button>
<h2> Validations</h2>
<form action="">
<label for="">Enter First name</label>
<input type="text" name="first"id ="first" required minlength="5" maxlength="20">
<button>Register</button>
</form>
</form>
</body>
</html>