-
Notifications
You must be signed in to change notification settings - Fork 0
/
forms.html
53 lines (52 loc) · 1.79 KB
/
forms.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Website</title>
</head>
<body>
<h1>Forms</h1>
<form action="https://dimalos.com/html-crash-course/forms/" method="post">
<p>
<label for="pizzaSauce">Sauce</label>
<select name="sauce" id="pizzaSauce">
<option value="tomato">Tomato</option>
<option value="bbq" selected>BBQ</option>
<option value="pesto">Pesto</option>
</select>
</p>
<hr>
<p>
<input type="radio" name="pizzaSize" value="small" id="pizzaSizeSmall">
<label for="pizzaSizeSmall">Small</label>
</p>
<p>
<input type="radio" name="pizzaSize" value="medium" id="pizzaSizeMedium" checked>
<label for="pizzaSizeMedium">Medium</label>
</p>
<p>
<input type="radio" name="pizzaSize" value="large" id="pizzaSizeLarge">
<label for="pizzaSizeLarge">Large</label>
</p>
<hr>
<p>
<label for="topping_cheese">Cheese</label>
<input type="checkbox" name="topping[]" value="cheese" id="topping_cheese" checked>
</p>
<p>
<label for="topping_mushrooms">Mushrooms</label>
<input type="checkbox" name="topping[]" value="mushrooms" id="topping_mushrooms">
</p>
<p>
<label for="topping_pepperoni">Pepperoni</label>
<input type="checkbox" name="topping[]" value="pepperoni" id="topping_pepperoni">
</p>
<p>
<label for="topping_olives">Olives</label>
<input type="checkbox" name="topping[]" value="olives" id="topping_olives">
</p>
<p>
<input type="submit" value="Just log in">
</p>
</form>
</body>
</html>