forked from Technigo/js-project-accessibility
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
206 lines (199 loc) · 5.41 KB
/
index.html
File metadata and controls
206 lines (199 loc) · 5.41 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>Accessibility Quiz</title>
<link
rel="stylesheet"
href="style.css"
>
</head>
<body>
<a
href="#main-content"
class="skip-link"
>Skip to main content</a>
<header>
<h1>Accessibility Quiz</h1>
<nav
role="navigation"
aria-label="Main menu"
>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
</header>
<main id="main-content">
<section
id="banner"
role="banner"
>
<img
src="assets/banner.jpg"
alt=""
role="presentation"
/>
</section>
<section id="introduction">
<div class="text-container">
<h2>Introduction</h2>
<p>Welcome to the Accessibility Quiz! Test your knowledge about web accessibility.</p>
<p>Click the button to start the quiz.</p>
</div>
<button
id="start-quiz"
aria-label="Start the quiz"
>Start Quiz</button>
</section>
<section
id="quiz"
hidden
>
<h2>This is a quiz about accessibility</h2>
<form id="quiz-form">
<fieldset>
<legend>Question 1: What does "web accessibility" aim to achieve?</legend>
<div class="radio-group">
<div class="form-control">
<input
type="radio"
id="answer1"
name="question1"
value="a"
>
<label for="answer1">Make websites accessible only to tech-savvy users.</label>
</div>
<div class="form-control">
<input
type="radio"
id="answer2"
name="question1"
value="b"
>
<label for="answer2">Ensure websites are usable by everyone, including people with disabilities.</label>
</div>
<div class="form-control">
<input
type="radio"
id="answer3"
name="question1"
value="c"
>
<label for="answer3">Limit access to websites based on geographic location.</label>
</div>
</div>
</fieldset>
<fieldset>
<legend>Question 2: Which feature helps improve accessibility for users with visual impairments?</legend>
<div class="radio-group">
<div class="form-control">
<input
type="radio"
id="answer-2-1"
name="question2"
value="a"
>
<label for="answer-2-1">Alt text for images.</label>
</div>
<div class="form-control">
<input
type="radio"
id="answer-2-2"
name="question2"
value="b"
>
<label for="answer-2-2">Bright flashing animations.</label>
</div>
<div class="form-control">
<input
type="radio"
id="answer-2-3"
name="question2"
value="c"
>
<label for="answer-2-3">Complicated fonts.</label>
</div>
</div>
</fieldset>
<fieldset>
<legend>Question 3: What should clickable links have for better accessibility?</legend>
<div class="radio-group">
<div class="form-control">
<input
type="radio"
id="answer-3-1"
name="question3"
value="a"
>
<label for="answer-3-1">Meaningless labels like "Click here."</label>
</div>
<div class="form-control">
<input
type="radio"
id="answer-3-2"
name="question3"
value="b"
>
<label for="answer-3-2">Clear, descriptive text like "Learn more about web accessibility."</label>
</div>
<div class="form-control">
<input
type="radio"
id="answer-3-3"
name="question3"
value="c"
>
<label for="answer-3-3">Hidden or invisible text.</label>
</div>
</div>
</fieldset>
<div class="form-controls">
<button
type="submit"
id="submit-button"
class="submit-button"
aria-describedby="submit-description"
>
Submit your answers!
</button>
<p
id="submit-description"
class="visually-hidden"
>
Click to submit your feedback and see the summary
</p>
</div>
</form>
<section
id="results"
hidden
aria-live="polite"
>
<div id="results-content">
</div>
</section>
</section>
<div
id="announcer"
class="visually-hidden"
aria-live="polite"
></div>
</main>
<footer role="contentinfo">
<div class="footer-content">
<nav
role="navigation"
aria-label="Footer menu"
>
</nav>
</div>
</footer>
<script src="main.js"></script>
</body>
</html>