-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuestion 5.html
112 lines (112 loc) · 3.88 KB
/
Question 5.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<style>
<style>
body {
font-family: sans-serif;
}
.form-container {
width: 40%;
margin: 0 auto;
padding: 15px;
border: 2px solid #ccc;
border-radius: 10px;
}
.form-title {
margin-bottom: 15px;
font-size: 24px;
font-weight: bold;
text-align: center;
}
.form-group {
margin-bottom: 18px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.form-control {
width: calc(70% - 30px);
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
display: inline-block;
vertical-align: middle;
}
.form-checkbox {
margin-right: 10px;
glyph-orientation-horizontal: middle;
}
.instructions-textarea {
width: 40%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
resize: vertical;
}
.submit-btn {
display: block;
width: 140px;
margin: 20px auto;
padding: 10px;
border: none;
border-radius: 5px;
background-color: #5c9ded;
color: #fff;
cursor: pointer;
}
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="form-container">
<div class="form-title">Pizza Shop 2.0</div>
<form>
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" class="form-control" placeholder="Enter your name">
</div>
<div class="form-group">
<label>Pizza Toppings</label>
<label for="supreme" class="form-checkbox">
<input type="checkbox" id="supreme" name="topping" value="supreme"> Supreme
</label>
<label for="vegetarian" class="form-checkbox">
<input type="checkbox" id="vegetarian" name="topping" value="vegetarian"> Vegetarian
</label>
<label for="hawaiian" class="form-checkbox">
<input type="checkbox" id="hawaiian" name="topping" value="hawaiian"> Hawaiian
</label>
</div>
<div class="form-group">
<label>Pizza Sauce</label>
<select id="sauce" class="form-control">
<option value="tomato">Tomato</option>
<option value="bbq">BBQ</option>
<option value="pesto">Pesto</option>
</select>
</div>
<div class="form-group">
<label>Optional Extras</label>
<label for="extra-cheese" class="form-checkbox">
<input type="checkbox" id="extra-cheese" name="extras" value="extra-cheese"> Extra Cheese
</label>
<label for="gluten-free" class="form-checkbox">
<input type="checkbox" id="gluten-free" name="extras" value="gluten-free"> Gluten Free Base
</label>
</div>
<div class="form-group">
<label for="delivery-instructions">Delivery Instructions</label>
<textarea id="delivery-instructions" class="instructions-textarea" rows="4" placeholder="Enter delivery instructions"></textarea>
</div>
<button type="submit" class="submit-btn">Send My Order</button>
</form>
</div>
</body>
</html>