-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
106 lines (87 loc) · 4.5 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Quiz</title>
<style>
body {
background-color: darkred;
}
.quiz_body {
border: 7px solid white;
background-color: blanchedalmond;
font-family: sans-serif;
width: 50%;
margin-inline: 25%;
margin-block: 3em 4em;
padding: 3em;
font-size: bigger;
}
.quiz_body input[type=radio] {
cursor: pointer;
}
.quiz_body input[type=text] {
height: 1em;
padding: 0.5em;
border: 2px solid darkred;
}
</style>
</head>
<body>
<div class="quiz_body">
<h1>Welcome to the Canadian Snack Quiz!</h1>
<p>Test your knowledge about Canadian Snacks!</p>
<form>
<!-- Question 1 -->
<h2>1. What is the most popular Salty Snack of Canada?</h2>
<label><input type="radio" name="q1" value="a"> A) Ketchup Chips</label><br>
<label><input type="radio" name="q1" value="b"> B) Buttered Popcorn</label><br>
<label><input type="radio" name="q1" value="c"> C) Salted Pretzels</label><br>
<label><input type="radio" name="q1" value="d"> D) Poutine</label><br><br>
<!-- Question 2 -->
<h2>2. What is the most popular Sugary Snack?</h2>
<label><input type="radio" name="q2" value="a"> A) Nanaimo Bars</label><br>
<label><input type="radio" name="q2" value="b"> B) Butter Tarts</label><br>
<label><input type="radio" name="q2" value="c"> C) Maple Candy</label><br>
<label><input type="radio" name="q2" value="d"> D) Timbits</label><br><br>
<!-- Question 3 -->
<h2>3. What is the most popular Vegan Snack?</h2>
<label><input type="radio" name="q3" value="a"> A) Seaweed Snacks</label><br>
<label><input type="radio" name="q3" value="b"> B) Smarties</label><br>
<label><input type="radio" name="q3" value="c"> C) Maple Sweet Potato Chips</label><br>
<label><input type="radio" name="q3" value="d"> D) Chocolate Almonds</label><br><br>
<!-- Question 4 -->
<h2>4. What is the most popular Carnivore Snack?</h2>
<label><input type="radio" name="q4" value="a"> A) Beef Jerky</label><br>
<label><input type="radio" name="q4" value="b"> B) Pepperoni Sticks</label><br>
<label><input type="radio" name="q4" value="c"> C) Pork Rinds</label><br>
<label><input type="radio" name="q4" value="d"> D) Chicken Nuggets</label><br><br>
<!-- Question 5 -->
<h2>4. What is the most popular snack of all?</h2>
<label><input type="radio" name="q5" value="a"> A) Timbits</label><br>
<label><input type="radio" name="q5" value="b"> B) Ketchup Chips</label><br>
<label><input type="radio" name="q5" value="c"> C) Poutine</label><br>
<label><input type="radio" name="q5" value="d"> D) Butter Tarts</label><br><br>
<!-- Question 6 -->
<h2>5. What snack is Canada best known for?</h2>
<label><input type="radio" name="q7" value="a"> A) Maple Syrup Candy</label><br>
<label><input type="radio" name="q7" value="b"> B) Ketchup Chips</label><br>
<label><input type="radio" name="q7" value="c"> C) Poutine</label><br>
<label><input type="radio" name="q7" value="d"> D) BeaverTails</label><br><br>
<!-- Question 7 -->
<h2>6. What's your favorite snack?</h2>
<label><input type="text" name="q_user_favorite" placeholder="eg: Snickers..." /></label><br>
<!-- Question 8 -->
<h2>7. Did you notice there are two Question 4s?</h2>
<label><input type="radio" name="q7" value="a"> A) What?</label><br>
<label><input type="radio" name="q7" value="b"> B) Yes!</label><br>
<label><input type="radio" name="q7" value="c"> C) No...</label><br>
<label><input type="radio" name="q7" value="d"> D) Yes... But not at first!</label><br><br>
<!-- Submit Button -->
<button type="submit">Submit Quiz</button>
</form>
</div>
</body>
</html>
<!-- Answers 1D, 2A, 3C, 4A, 5D, 6B -->