This repository was archived by the owner on Jun 16, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathclass2.html
More file actions
471 lines (418 loc) · 21.3 KB
/
Copy pathclass2.html
File metadata and controls
471 lines (418 loc) · 21.3 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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Class 2 ~ Web Accessibility ~ Girl Develop It</title>
<meta name="description" content="This is the Girl Develop It Web Accessibility curriculum. It was originally developed by Sylvia Pellicore and modified by Marcy Sutton.
This course is meant to be taught as a two-part class. The primary slides are designed for maximum presentability--one picture, one sentence. The vertical slides contain speaker notes, to make the slides more useful as a shared resource.
Each of the slides is customizable according to the needs of a given class or audience. The GitHub repository contains an Instructor Guide, with further information about the course.">
<meta name="author" content="Girl Develop It">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/simple.css" id="theme">
<link rel="stylesheet" href="css/accesscustom.css">
<!-- For syntax highlighting -->
<!-- light editor<link rel="stylesheet" href="lib/css/light.css"> -->
<!--dark editor--><link rel="stylesheet" href="lib/css/dark.css">
<!--<link rel="stylesheet" href="lib/css/zenburn.css">-->
<link rel="stylesheet" href="plugin/accessibility-helper/css/accessibility-helper.css">
<!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>
if( window.location.search.match( /print-pdf/gi ) ) {
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'css/print/pdf.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
}
</script>
<!-- If use the PDF print sheet so students can print slides-->
<link rel="stylesheet" href="css/print/pdf.css" type="text/css" media="print">
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<!-- Opening slides -->
<section>
<img src="img/circle-gdi-logo.png" alt="Girl Develop It" style="max-height: 400px;" class="nonbordered">
<h1>Intro to Web Accessibility</h1>
<h2>Class 2</h2>
</section>
<!-- Welcome-->
<section>
<h2>Welcome!</h2>
<p>Girl Develop It is here to provide affordable and accessible programs to learn software through mentorship and hands-on instruction.</p>
<p class ="green">Some "rules"</p>
<ul>
<li>We are here for you!</li>
<li>Every question is important</li>
<li>Help each other</li>
<li>Have fun</li>
</ul>
</section>
<!-- Intro: What is Accessibility?-->
<section>
<h2>What is accessibility?</h2>
<ul>
<li>Accessibility is about making your sites useful to as many people as possible.</li>
<li>Accessibility is about overcoming barriers.</li>
<li>Accessibility is about helping your users.</li>
</ul>
</section>
<section>
<h2>Accessibility in the Real World</h2>
<iframe width="560" height="315" src="https://www.youtube.com/embed/g6wZlTcwGks?rel=0" frameborder="0" allow="encrypted-media" allowfullscreen></iframe>
<aside class="notes">
This video introduces many concepts we are talking about today with poor implementation of features on the web with some bad humor. Watch first 4ish minutes.
</aside>
</section>
<section>
<h2>What are the common problems users face on the web?</h2>
<p>Screen reader user survey</p>
<img src="img/screen_reader_problems_2017.png" alt="bar chart showing most problematic issues screen reader users face on the web."/>
<div id="problem-items" class="visuallyhidden">
<p>The most problematic items according to the WebAIM survey in 2017 are:</p>
<ol>
<li>CAPTCHA - images presenting text used to verify that you are a human user.</li>
<li>Screens or parts of screens that change unexpectedly.</li>
<li>Links or buttons that do not make sense.</li>
<li>Images with missing or improper descriptions (alt text).</li>
<li>The presence of inaccessible Flash content.</li>
<li>Lack of keyboard accessibility.</li>
<li>Complex or difficult forms.</li>
<li>Missing or improper headings.</li>
<li>Too many links or navigation items.</li>
<li>Complex data tables.</li>
<li>Inaccessible or missing search functionality.</li>
<li>Lack of "skip to main content" or "skip navigation" links.</li>
</ol>
</div>
<p>Source: <a href="https://webaim.org/projects/screenreadersurvey7/" target="_blank" title="Link opens in a new window">WebAIM Screen Reader Survey, October 2017<span class="visuallyhidden"> opens in a new window</span></a></p>
<aside class="notes">Introduce the WebAIM Screen Reader survey and show the common problems. Marcy's version of the <a href="http://marcysutton.com/stuff/GDI-Accessibility/img/webaim-survey-problematic-items.png">infographic</a> highlights topics covered in the two classes. This can be helpful to keep open in a second browser tab so it can be referenced more than once.
</aside>
</section>
<section>
<h2>How do I code for accessibility?</h2>
<h3>HTML</h3>
<ul style="padding-right: 30%;">
<li>Headings</li>
<li>Buttons</li>
<li>Form Labels</li>
<li>Text Alternatives</li>
<li>Tab Index</li>
<li>External link indicators</li>
</ul>
<img src="img/wallace-gromit.jpg" alt="Wallace & Gromit" style="position: absolute; right: 0;" />
<aside class="notes">
<p>Define semantic - elements that have meaning</p>
</aside>
</section>
<section>
<h2>Semantic HTML</h2>
<ul>
<li class="fragment">Use HTML elements that have meaning.</li>
<li class="fragment">Elements have default behavior.</li>
<li class="fragment">Semantic structure is one of the most important usability features for screen reader users, as it helps them more easily understand and navigate the page structure.</li>
</ul>
<p style="margin-top:1em"><a class="fragment" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element" target="_blank" title="Link opens in a new window">MDN Document on HTML elements<span class="visuallyhidden"> opens in a new window</span></a></p>
</section>
<section>
<h2>HTML Headings</h2>
<ul>
<li class="fragment">Headings also help <em>all</em> your users understand the content.</li>
<li class="fragment">We can think about headings like an outline for a paper.</li>
<li class="fragment">Headings should not skip levels</li>
</ul>
<pre class="fragment"><code><h1>Most important</h1>
<h2>Next most important</h2>
<h3>Third most important</h3>
<h4>Other heading</h4></code></pre>
<p class="fragment"><a href="http://accessiblehtmlheadings.com/" target="_blank" title="Link opens in a new window">Read more about headings<span class="visuallyhidden"> opens in a new window</span></a></p>
</section>
<section>
<h2>HTML Buttons</h2>
<p>Clickable elements</p>
<pre><code><button onclick="do something">Do Something</button></code></pre>
<button style="font-size: 30px; height: 60px; margin-bottom: 10px; border: 2px solid #53555C;">Do Something</button>
<br>
<p style="margin-top:1em"><a href="http://www.karlgroves.com/2013/05/14/links-are-not-buttons-neither-are-divs-and-spans/" target="_blank" title="Link opens in a new window">Links are not buttons. Neither are divs and spans.<span class="visuallyhidden"> opens in a new window</span></a></p>
<p style="margin-top:1em"><a href="https://marcysutton.com/links-vs-buttons-in-modern-web-applications/" target="_blank" title="Link opens in a new window">Links vs. Buttons<span class="visuallyhidden"> opens in a new window</span></a></p>
</section>
<section>
<h2>Let's Develop It</h2>
<p>What is and isn't a button?</p>
<p>Take a look at the <a href="https://codepen.io/margiechubin/pen/XxJxOv" target="_blank" title="Link opens in a new window">button demo codepen<span class="visuallyhidden"> opens in a new window</span></a></p>
<aside class="notes">
Buttons are often coded poorly on the web by adding click events to other elements where a button would have worked best. The codepen linked shows 4 examples of how a button could be coded but only the 4th button is an actual button.
</aside>
</section>
<section>
<h2>Form Labels</h2>
<p>How do they work?</p>
<div class="code-example">
<label for="name-field">Name</label>
<input type="text" id="name-field" name="name-field" placeholder="Type your furry friend's name" />
<div class="float">
<label for="species-dog">Dog</label>
<input type="radio" id="species-dog" name="species" />
</div>
<div class="float">
<label for="species-cat">Cat</label>
<input type="radio" id="species-cat" name="species" />
</div>
<div class="clear"></div>
</div>
</section>
<section>
<h2>Let's develop it</h2>
<h3>Add labels to an HTML form</h3>
<div class="fragment">
<p>Explicit association - label for</p>
<pre>
<code class="html" data-trim>
<label for="name-field">Label</label>
<input type="text" id="name-field" name="name-field">
</code>
</pre>
</div>
<div class="fragment">
<p>You can also implicitly associate the label with the input field.</p>
<pre>
<code class="html" data-trim>
<label>Label
<input type="text" name="name-field">
</label>
</code>
</pre>
</div>
<p class="fragment">Add a label to the form in <a href="https://codepen.io/margiechubin/pen/KGgNgj" target="_blank" title="Link opens in a new window">input field demo codepen<span class="visuallyhidden"> opens in a new window</span></a>.</p>
</section>
<section>
<h2>Other tips for forms</h2>
<ul>
<li>Don't use placeholder text as the label.</li>
<li>Provide good instructions, labels, validation, and errors.</li>
<li>The form should be keyboard accessible.</li>
<li>Allow the user to easily correct their mistakes.</li>
</ul>
<p style="margin-top:1em"><a href="https://webaim.org/techniques/forms/" target="_blank" title="Link opens in a new window">Creating Accessible Forms<span class="visuallyhidden"> opens in a new window</span></a></p>
</section>
<section>
<h2>External Links</h2>
<p>Provide affordances to warn users of unexpected screen changes</p>
<img src="img/links-WCAG.png" alt="WCAG 2.0 Link requirements" class="nonbordered" />
<img src="img/how-i-audit-a-website-external-link.png" alt="How I Audit a Website for Accessibility external link indicator" class="nonbordered" />
</section>
<section>
<h2>External Links</h2>
<h3>Let's Develop It</h3>
<p>Here's one way of letting users know a link opens in a new tab.</p>
<pre class="fragment"><code class="html" data-trim>
<a href="goofy.html">Goofy page<a>
<a href="http://disney.com" target="_blank"
title="Link opens in a new window"
class="external-link">
Disney.com
<span class="offscreen">
opens in a new window
</span>
</a>
</code></pre>
<aside class="notes">A common problem cited in the WebAIM survey is “unexpected screen changes”. Discuss how to warn users of links that open in new windows with offscreen text and title attributes. Include a discussion about how it's really about usability in general. Recommended reading: “Don't Make Me Think” by Steve Krug</aside>
</section>
<section>
<h2>Tab Index</h2>
<ul>
<li>The tabindex attribute explicitly defines the tab order for focusable elements (typically links and form controls) within a page.</li>
<li>It can be used to define whether elements should be focusable.</li>
<li>Don't use tab index values greater than 0</li>
<li><a href="http://webaim.org/techniques/keyboard/tabindex" target="_blank" title="Link opens in a new window">Read more about tabindex on WebAIM<span class="visuallyhidden"> opens in a new window</span></a></li>
</ul>
<aside class="notes">
<p>Source: http://reference.sitepoint.com/html/a/tabindex</p>
<p>Explain tab order. Show a demo of tabIndex=”” attributes on native and non-native elements to show how it affects the flow of a document (anchor, input, div, heading, etc.). Explain tab index values of -1, 0 and 1+ their specific purposes</p>
</aside>
</section>
<section>
<h2>Tab Index</h2>
<h2>Let's Develop It</h2>
<p>Explore tab index on native (buttons, links, ect.) and non-native elements.</p>
<p>Play with tab index in the <a href="https://codepen.io/margiechubin/pen/YJGpra" target="_blank" title="Link opens in a new window">tab index demo codepen<span class="visuallyhidden"> opens in a new window</span></a> or try tabbing through this slide</p>
<div style="margin-top:1em; padding:10px; border: 2px solid #53555C">
<a href="#">Actual Link with no changed tabindex</a><br>
<a href="#" tabindex="-1">tabindex -1 causes this to be focusable only by script</a>
<div tabindex="0">This is a focusable div with tabindex 0</div>
<div tabindex="2">Tabindex values greater than 0 could require managing the tab order for the whole page</div>
</div>
<aside class="notes">
<p>Explain how tabindex -1 causes the element to only be focusable by script. It takes it out of the tab order entirely. This is useful for focusing on form errors.</p>
</aside>
</section>
<section>
<h2>How do I code for accessibility?</h2>
<h3>CSS</h3>
<p>CSS can be used to alter visual appearance, but should never change the structure or ordering of the page content.</p>
<ul>
<li>Visually Hidden Content</li>
<li>Really Hidden</li>
<li>Background Images</li>
</ul>
</section>
<section>
<h2>Visually Hidden Content</h2>
<p>This is one way to provide data for screen reader users and hide for sighted users</p>
<pre><code class="css" data-trim>/*Copied from HTML5 Boilerplate*/
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
</code></pre>
<p style="margin-top:1em;"><a href="http://snook.ca/archives/html_and_css/hiding-content-for-accessibility" target="_blank" title="Link opens in a new window">Hiding Content for Accessibility<span class="visuallyhidden"> opens in a new window</span></a></p>
</section>
<section>
<h2>Really Hidden</h2>
<p>How to show and hide content from <em>all</em> users</p>
<pre><code class="css" data-trim>.reallyHidden {
display: none;
visibility: hidden;
}
.notHidden {
display: block;
visibility: visible;
}
</code></pre>
<p style="margin-top:1em;"><a href="https://css-tricks.com/places-its-tempting-to-use-display-none-but-dont/" target="_blank" title="Link opens in a new window">Places it's tempting to use `display:none`, but don't<span class="visuallyhidden"> opens in a new window</span></a></p>
</section>
<section>
<h2>Background Images</h2>
<ul>
<li>Only use decorative images as background images</li>
<li>No alternative text is available</li>
<li>Don't forget to consider contrast of text on top of images</li>
</ul>
<p>Example code</p>
<pre><code class="css" data-trim>
#animalImage {
background-image: url('animal-drums-copia.jpg');
background-repeat: no-repeat;
}
</code></pre>
</section>
<section>
<h2>What else can we do with CSS?</h2>
<ul>
<li class="fragment">Implement good color contrast</li>
<li class="fragment">Use padding and margins for space instead of using extra markup</li>
<li class="fragment">Style focus states for links and buttons</li>
</ul>
<pre class="fragment"><code class="css" data-trim>
a {
color: #01a9b4;
}
a:hover, a:focus {
color: #f3787e;
}
</code></pre>
</section>
<section>
<h2>How do I code for accessibility?</h2>
<h3>Accessible Rich <br>Internet Applications</h3>
<ul>
<li class="fragment">Expands HTML's functionality.</li>
<li class="fragment">Define behavior of custom widgets.</li>
<li class="fragment">Communicates state and purpose to assistive technologies.</li>
<li class="fragment">ARIA gives information to screen readers, but doesn't tell browsers or assistive technologies what to do with it.</li>
</ul>
<p style="margin-top:1em;" class="fragment"><a href="https://www.marcozehe.de/2014/03/27/what-is-wai-aria-what-does-it-do-for-me-and-what-not/" target="_blank">What is WAI-ARIA, what does it do for me, and what not?<span class="visuallyhidden"> opens in a new window</span></a></p>
<aside class="notes"></aside>
</section>
<section>
<h2>"No ARIA is better than bad ARIA"</h2>
<p>Taken directly from the <a href="https://www.w3.org/TR/wai-aria-practices-1.1/" target="_blank">ARIA Authoring Practices<span class="visuallyhidden"> opens in a new window</span></a></p>
</section>
<section>
<h2>ARIA Core Components</h2>
<div class="inset-width">
<div class="definition">
<h4 style="margin-top: 0.75em">Roles</h4>
<p>What does this thing do?</p>
<pre><code class="html xml"><form role="search"></code></pre>
</div>
<div class="definition">
<h4 style="margin-top: 0.75em">States</h4>
<p>The current condition of this particular thing</p>
<pre><code class="html xml"><input aria-disabled="true"></code></pre>
</div>
<div class="definition">
<h4 style="margin-top: 0.75em">Properties</h4>
<p>The nature of the thing</p>
<pre><code class="html xml"><input aria-required="true"></code></pre>
</div>
</div>
</section>
<section>
<h2>Resources</h2>
<ul>
<li><a href="http://webaim.org/projects/screenreadersurvey7/" target="_blank" title="Link opens in a new window">WebAIM Screen Reader Survey<span class="visuallyhidden"> opens in a new window</span></a></li>
<li><a href="https://chrome.google.com/webstore/detail/axe/lhdoppojpmngadmnindnejefpokejbdd?hl=en" target="_blank" title="Link opens in a new window">Axe Chrome extension<span class="visuallyhidden"> opens in a new window</span></a>, a Chrome extension that does in-browser audits against several.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/web-developer/" target="_blank" title="Link opens in a new window">Web Developer toolbar<span class="visuallyhidden"> opens in a new window</span></a>, a Firefox extension with helpful tools</li>
<li><a href="http://a11yproject.com/" target="_blank">The Accessibility Project<span class="visuallyhidden"> opens in a new window</span></a></li>
<li><a href="http://www.w3.org/TR/aria-in-html/" target="_blank" title="Link opens in a new window">Using ARIA in HTML<span class="visuallyhidden"> opens in a new window</span></a></li>
<li><a href="https://css-tricks.com/aria-spackle-not-rebar/" target="_blank" title="Link opens in a new window">ARIA is Spackle, Not Rebar<span class="visuallyhidden"> opens in a new window</span></a></li>
</ul>
</section>
<section>
<h2>How can I keep learning?</h2>
<ul>
<li>Come to the <a href="https://www.meetup.com/a11ychi/" target="_blank" title="Link opens in a new window">Chicago Digital Accessibility and Inclusive Design Meetup<span class="visuallyhidden"> opens in a new window</span></a></li>
<li>Follow cool people in the industry on social media.</li>
<li>Practice! Try designing and creating your own site from scratch.</li>
<li>Try the accessibility features on your phone or computer.</li>
<li>Listen to podcasts, such as <a href="https://a11yrules.com/" target="_blank" title="Link opens in a new window">a11y rules<span class="visuallyhidden"> opens in a new window</span></a></li>
</ul>
</section>
</div>
<footer>
<div class="copyright">
Introduction to Web Accessibility -- Girl Develop It --
<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" /></a>
</div>
</footer>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/accessibility-helper/js/accessibility-helper.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>