forked from T-Thiry/js-project-accessibility
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
376 lines (321 loc) · 9.73 KB
/
index.html
File metadata and controls
376 lines (321 loc) · 9.73 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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Web Accessibility</title>
<link
rel="stylesheet"
href="css/styles.css"
/>
</head>
<body>
<a
href="#accessibility-quiz"
class="skip-link"
>Skip To Quiz
</a>
<header id="header">
<div class="header-content">
<h1>Web 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>
</div>
</header>
<main id="main-content">
<section class="quiz-instructions">
<h2>
Welcome to our quiz
</h2>
<p>
Our quiz follows accessibility principles to ensure it can be used by everyone. We use clearly group related
questions. Labeling for screen reader support.
Keyboard navigation is fully supported, allowing users to move through the quiz without a mouse. Overall, the
design is
simple, clear, and inclusive for all users. <br><br>This quiz is part of our mission to help more people understand what
accessibility really means, and how disability can affect the way people experience the world.
</p>
<img
class="info-image"
src="assets/Disability_three.png"
alt="Portrait of a group of friends with disability"
>
<form id="accessibility-quiz">
<h2>Accessibility Quiz</h2>
<!-- Progress bar -->
<div class="quiz-progress" role="status" aria-live="polite">
<div class="progress-bar">
<div class="progress-fill" style="width: 0%"></div>
</div>
<p class="progress-text" role="status" aria-live="polite">0 of 6 questions answered</p>
</div>
<fieldset
class="quiz-card"
aria-label="Question-1"
>
<legend> 1. Meet Camilla.
Camilla uses a screen reader. What helps her most on a website?</legend>
<input
id="question-one-a"
type="radio"
name="question-one"
value="Images with helpful descriptions"
/>
<label for="question-one-a">Images with helpful descriptions</label><br>
<input
id="question-one-b"
type="radio"
name="question-one"
value="Buttons you use with a mouse"
/>
<label for="question-one-b">Buttons you use with a mouse </label><br>
<input
id="question-one-c"
type="radio"
name="question-one"
value="Auto playing videos"
/>
<label for="question-one-c">Auto playing videos</label>
<div class="error-container" role="status" aria-live="assertive"></div>
<div class="nav-buttons">
<button
type="button"
class="next-btn"
>Next</button>
</div>
</fieldset>
<fieldset
class="quiz-card"
aria-label="Question-2"
>
<legend>2. Meet Priya.
Priya has ADHD. What helps her stay focused?</legend>
<input
id="question-two-a"
type="radio"
name="question-two"
value="Flashing animations"
/>
<label for="question-two-a">Flashing animations</label><br>
<input
id="question-two-b"
type="radio"
name="question-two"
value="Collapsible sections"
/>
<label for="question-two-b">Collapsible sections</label><br>
<input
id="question-two-c"
type="radio"
name="question-two"
value="Long, dense text"
/>
<label for="question-two-c">Long, dense text</label>
<div class="error-container" aria-live="polite"></div>
<div class="nav-buttons">
<button
type="button"
class="prev-btn"
>Previous</button>
<button
type="button"
class="next-btn"
>Next</button>
</div>
</fieldset>
<fieldset
class="quiz-card"
aria-label="Question-3"
>
<legend>3. Meet Lisa.
Lisa has low vision. What helps her most?
</legend>
<input
id="question-three-a"
type="radio"
name="question-three"
value="Light gray text on white"
/>
<label for="question-three-a">Light gray text on white</label><br>
<input
id="question-three-b"
type="radio"
name="question-three"
value="A dark mode option"
/>
<label for="question-three-b">A dark mode option</label><br>
<input
id="question-three-c"
type="radio"
name="question-three"
value="Text over background images"
/>
<label for="question-three-c">Text over background images</label>
<div class="error-container" aria-live="polite"></div>
<div class="nav-buttons">
<button
type="button"
class="prev-btn"
>Previous</button>
<button
type="button"
class="next-btn"
>Next</button>
</div>
</fieldset>
<fieldset
class="quiz-card"
aria-label="Question-4"
>
<legend> 4. Meet Erik.
Erik has dyslexia. What supports easier reading?
</legend>
<input
id="question-four-a"
type="radio"
name="question-four"
value="Simple layout and easy-to-read text"
/>
<label for="question-four-a">Simple layout and easy-to-read text</label><br>
<input
id="question-four-b"
type="radio"
name="question-four"
value="Fancy fonts and long text"
/>
<label for="question-four-b">Fancy fonts and long text</label><br>
<input
id="question-four-c"
type="radio"
name="question-four"
value="Complex text layout"
/>
<label for="question-four-c">Complex text layout</label>
<div class="error-container" aria-live="polite"></div>
<div class="nav-buttons">
<button
type="button"
class="prev-btn"
>Previous</button>
<button
type="button"
class="next-btn"
>Next</button>
</div>
</fieldset>
<fieldset
class="quiz-card"
aria-label="Question-5"
>
<legend> 5. Meet Anders.
Anders has hearing loss. What helps him on video sites?
</legend>
<input
id="question-five-a"
type="radio"
name="question-five"
value="Music that autoplays"
/>
<label for="question-five-a">Music that autoplays</label><br>
<input
id="question-five-b"
type="radio"
name="question-five"
value="Videos with captions and text"
/>
<label for="question-five-b">Videos with captions and text</label><br>
<input
id="question-five-c"
type="radio"
name="question-five"
value="Sound-only cues"
/>
<label for="question-five-c">Sound-only cues</label>
<div class="error-container" aria-live="polite"></div>
<div class="nav-buttons">
<button
type="button"
class="prev-btn"
>Previous</button>
<button
type="button"
class="next-btn"
>Next</button>
</div>
</fieldset>
<fieldset
class="quiz-card"
aria-label="Question-6"
>
<legend>6. Meet Nour.
Nour has limited mobility and uses a keyboard. What helps most?
</legend>
<input
id="question-six-a"
type="radio"
name="question-six"
value="Keyboard friendly buttons"
/>
<label for="question-six-a">Keyboard friendly buttons</label><br>
<input
id="question-six-b"
type="radio"
name="question-six"
value="Drop-down menus"
/>
<label for="question-six-b">Drop-down menus</label><br>
<input
id="question-six-c"
type="radio"
name="question-six"
value="Tiny clickable areas"
/>
<label for="question-six-c">Tiny clickable areas</label>
<div class="error-container" aria-live="polite"></div>
<div class="nav-buttons">
<button
type="button"
class="prev-btn"
>Previous</button>
<button
type="button"
class="next-btn"
>Finish</button>
</div>
</fieldset>
</form>
</main>
<footer role="contentinfo">
<div class="footer-content">
<nav
role="navigation"
aria-label="Footer menu"
>
<ul>
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="about.html">About</a>
</li>
</ul>
</nav>
</div>
</footer>
<script src="js/main.js"></script>
</body>
</html>