Skip to content

Commit 21c0464

Browse files
authored
Create forms.html
0 parents  commit 21c0464

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

forms.html

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>My Website</title>
5+
</head>
6+
<body>
7+
<h1>Forms</h1>
8+
<form action="https://dimalos.com/html-crash-course/forms/" method="post">
9+
<p>
10+
<label for="pizzaSauce">Sauce</label>
11+
<select name="sauce" id="pizzaSauce">
12+
<option value="tomato">Tomato</option>
13+
<option value="bbq" selected>BBQ</option>
14+
<option value="pesto">Pesto</option>
15+
</select>
16+
</p>
17+
<hr>
18+
<p>
19+
<input type="radio" name="pizzaSize" value="small" id="pizzaSizeSmall">
20+
<label for="pizzaSizeSmall">Small</label>
21+
</p>
22+
<p>
23+
<input type="radio" name="pizzaSize" value="medium" id="pizzaSizeMedium" checked>
24+
<label for="pizzaSizeMedium">Medium</label>
25+
</p>
26+
<p>
27+
<input type="radio" name="pizzaSize" value="large" id="pizzaSizeLarge">
28+
<label for="pizzaSizeLarge">Large</label>
29+
</p>
30+
31+
<hr>
32+
<p>
33+
<label for="topping_cheese">Cheese</label>
34+
<input type="checkbox" name="topping[]" value="cheese" id="topping_cheese" checked>
35+
</p>
36+
<p>
37+
<label for="topping_mushrooms">Mushrooms</label>
38+
<input type="checkbox" name="topping[]" value="mushrooms" id="topping_mushrooms">
39+
</p>
40+
<p>
41+
<label for="topping_pepperoni">Pepperoni</label>
42+
<input type="checkbox" name="topping[]" value="pepperoni" id="topping_pepperoni">
43+
</p>
44+
<p>
45+
<label for="topping_olives">Olives</label>
46+
<input type="checkbox" name="topping[]" value="olives" id="topping_olives">
47+
</p>
48+
<p>
49+
<input type="submit" value="Just log in">
50+
</p>
51+
</form>
52+
</body>
53+
</html>

0 commit comments

Comments
 (0)