-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab3-forms.html
More file actions
75 lines (70 loc) · 2.62 KB
/
Copy pathlab3-forms.html
File metadata and controls
75 lines (70 loc) · 2.62 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coffee Order Form</title>
</head>
<body>
<h1>Coffee Order Form</h1>
<form action="https://www.w3schools.com/action_page.php" method="get">
<p>
<label for="name">Customer Name:</label>
<input type="text" id="name" name="customer_name" required />
</p>
<p>
<label for="mail">Email Address:</label>
<input type="email" id="mail" name="user_email" required />
</p>
<fieldset>
<legend>Coffee Type</legend>
<p>
<label for="type">Choose a type:</label>
<select id="type" name="coffee_type">
<option value="americano">Americano</option>
<option value="cappuccino">Cappuccino</option>
<option value="espresso">Espresso</option>
<option value="latte">Latte</option>
</select>
</p>
</fieldset>
<fieldset>
<legend>Size</legend>
<p>
<input type="radio" name="size" id="size_small" value="small" required />
<label for="size_small">Small</label>
</p>
<p>
<input type="radio" name="size" id="size_medium" value="medium" />
<label for="size_medium">Medium</label>
</p>
<p>
<input type="radio" name="size" id="size_large" value="large" />
<label for="size_large">Large</label>
</p>
</fieldset>
<fieldset>
<legend>Extras</legend>
<ul>
<li>
<input type="checkbox" id="whippedcream" name="extras" value="whipped cream" />
<label for="whippedcream">Whipped Cream</label>
</li>
<li>
<input type="checkbox" id="extra_shot" name="extras" value="extra shot" />
<label for="extra_shot">Extra Shot</label>
</li>
<li>
<input type="checkbox" id="oatmilk" name="extras" value="oat milk" />
<label for="oatmilk">Oat Milk</label>
</li>
</ul>
</fieldset>
<p>
<label for="instructions">Special Instructions:</label>
<textarea id="instructions" name="special_instructions" rows="4" cols="40"></textarea>
</p>
<button type="submit">Submit Order</button>
</form>
</body>
</html>