1 of 24

Accessibility 101, or

“Oh gosh, I’ve been doing this wrong.”

@cordeliadillon

2 of 24

“Web accessibility means people with disabilities can perceive, understand, navigate, and interact with the Web.”

  • W3C

@cordeliadillon

3 of 24

Provide a good user experience for everyone.

@cordeliadillon

4 of 24

How can I tell if I’m

doing this right?

@cordeliadillon

5 of 24

Tools for quick testing:

  • Your keyboard
  • An old, blurry monitor
  • WAVE (Web Accessibility Evaluation Tool)
  • Free screenreader:
  • VoiceOver on Apple devices
    • Cmd + F5 on OS X
    • Settings > General > Accessibility on iOS
  • NVDA on Windows

@cordeliadillon

6 of 24

Let me know where I am.

@cordeliadillon

7 of 24

:focus {

outline: none;

}

8 of 24

Label your inputs.

<label>

Username

<input type=“text”/>

</label>

<label for=“un”>Username</label>

<input type= “text” id= “un”/>

@cordeliadillon

9 of 24

Use colors wisely.

@cordeliadillon

10 of 24

Convey meaning through more than just color.

@cordeliadillon

11 of 24

Convey meaning through more than just color.

@cordeliadillon

Confusing

12 of 24

Convey meaning through more than just color.

@cordeliadillon

Confusing

Clear

13 of 24

Color contrast matters.

Would you agree with that?

Can you see this?

What about this?

And this?

Are you squinting yet?

@cordeliadillon

14 of 24

Color resources:

@cordeliadillon

15 of 24

Show AND tell.

@cordeliadillon

16 of 24

Give every <img> on

your site an alt attribute.

Yes, every single one!

(Psst… it can be alt=“” if the image is decorative.)

@cordeliadillon

17 of 24

Good:

<img alt=“” src=“decorativeSectionDivider.png”/>

<img alt=“{{a description of the image that’s relevant to its context}}” src=“myImage.png”/>

Bad:

<img src=“imageThatMayOrMayNotBeImportant.png”/>

<img alt=“photo” src=“importantImage.png”/>

@cordeliadillon

18 of 24

Give anchors

some love.

@cordeliadillon

19 of 24

Links should have

text in them.

@cordeliadillon

20 of 24

Link text should make sense out of context.

@cordeliadillon

21 of 24

<a> and <button> always trump clickable <div>, <span>, <i>, etc.

@cordeliadillon

22 of 24

Don’t just hover.

Focus.

@cordeliadillon

23 of 24

Additional Resources:

  • WebAIM (Web Accessibility in Mind)
  • WCAG 2.0 (Web Accessibility Guidelines)
  • ARIA 1.0 (Accessible Rich Internet Applications)
  • Accessibility Camp

@cordeliadillon

24 of 24

Who’s brave enough to have their site tested with VoiceOver?

@cordeliadillon