Web Accessibility For Content Creators and Developers But first - - PowerPoint PPT Presentation

web accessibility
SMART_READER_LITE
LIVE PREVIEW

Web Accessibility For Content Creators and Developers But first - - PowerPoint PPT Presentation

Web Accessibility For Content Creators and Developers But first *stands on soapbox Many people with sensory impairments your websites 22% of adults in the US identify as having a disability Who has a disability? Not Able Able See


slide-1
SLIDE 1

Web Accessibility

For Content Creators and Developers

slide-2
SLIDE 2

But first…

*stands on soapbox

slide-3
SLIDE 3

Many people with sensory impairments your websites

slide-4
SLIDE 4

22% of adults in the US identify as having a disability

slide-5
SLIDE 5

See Hear Walk Read print Write with pen or pencil Communicate verbally Tune out distraction Learn Mange physical/mental health

Who has a disability?

Able Not Able

slide-6
SLIDE 6

Macular Degeneration Glaucoma Retinitis Pigmentosa Cataracts

slide-7
SLIDE 7

A person does not have a disability. Disability arises when circumstances deny the opportunity to meet a need. Some disabilities can be overcome by modifying the environment.

slide-8
SLIDE 8

People who use screen readers browse webpages the same as anyone else.

  • Sighted users do not read every word on a webpage, they:
  • Skim the sections
  • Scan for headings
  • Scan for links
  • People who use screen readers do the same.
slide-9
SLIDE 9

People who use screen readers browse webpages just like anyone else.

slide-10
SLIDE 10

Investments in Web Accessibility pay big dividends

slide-11
SLIDE 11

On with the show…

*steps off soapbox

slide-12
SLIDE 12

Who is responsible for making my website accessible.

slide-13
SLIDE 13

Accessibility is a team effort shared by web developers and content creators

slide-14
SLIDE 14

Website

slide-15
SLIDE 15

Web Developers

slide-16
SLIDE 16

Content Creators

slide-17
SLIDE 17

Compliance is a shared responsibility

slide-18
SLIDE 18

How do we measure if content is accessible?

slide-19
SLIDE 19

WCAG 2.0?

It is a set of Web Content Accessibility Guidelines. If a website passes the guidelines it is accessible to people with a wide variety of disabilities. Overriding principles:

  • Perceivable
  • Operable
  • Understandable
  • Robust
slide-20
SLIDE 20

Checking for accessibility requires both automated and manual testing

You will notice in the lower right corner of the presentation that indicates if testing requires manual help or automated testing.

Manual test Automated test

slide-21
SLIDE 21

WCAG 2.0

slide-22
SLIDE 22

Content is available to the senses (sight, hearing, and/or touch)

Perceivable

  • 1. Perceivable

1.1 Text Alternatives 1.2 Time-based Media 1.3 Adaptable 1.4 Distinguishable

slide-23
SLIDE 23

Text equivalents for every non-text element.

  • 1. Perceivable

1.1 Text Alternatives

slide-24
SLIDE 24
  • 1. Perceivable

1.1 Text Alternatives

CMS Toolbar Insert Image

slide-25
SLIDE 25

Audio and video media require alternatives

Video Captioning surrounds us, binds us, holds us together.

Audio = transcript Video = captioning

  • 1. Perceivable

1.1 Time-based Media

slide-26
SLIDE 26

Use of color

  • 1. Perceivable

1.3 Distinguishable

Monochromacy

(very rare)

Normal Protanopia

(red-green)

slide-27
SLIDE 27

Contrast ratio

  • 1. Perceivable

1.3 Distinguishable

  • 1. 1.5:1 #D4D4D4
  • 2. 2.0:1 #B3B3B3
  • 3. 2.5:1 #A4A4A4
  • 4. 3.0:1 #949494
  • 5. 3.5:1 #888888
  • 6. 4.0:1 #808080
  • 7. 4.5:1 #777777
  • 8. 7.0:1 #5A5A5A
  • 9. 20:1 #000000

< 17px

> 18px

slide-28
SLIDE 28

Contrast ratio

  • 1. Perceivable

1.3 Distinguishable

  • Font-size 17px or less requires 4.5:1 ratio
  • Font-size 18px or more requires 3:1 ratio
  • Link text vs. body text requires 3:1 or use an underline

FAIL FAIL PASS

slide-29
SLIDE 29

Check link hover states

  • 1. Perceivable

1.4 Distinguishable

  • Link text vs. body text requires 3:1 or use an underline
slide-30
SLIDE 30

Checking for contrast violations on images or gradients

  • 1. Perceivable

1.3 Distinguishable

slide-31
SLIDE 31

Checking for contrast violations on images or gradients More on this tool later…

  • 1. Perceivable

1.3 Distinguishable

slide-32
SLIDE 32

No images of text

  • 1. Perceivable

1.3 Distinguishable

slide-33
SLIDE 33
  • 2. Operable

2.1 Keyboard Accessible 2.2 Enough Time 2.3 Seizures 2.4 Navigable

Interface forms, controls, and navigation are operable

slide-34
SLIDE 34

No Mouse

  • 2. Operable

2.1 Keyboard Accessible

  • Every interaction on a site should be possible with the

“tab”, “spacebar” and “enter” button

  • “Skip over” nav to main content
  • Demo on this later…
slide-35
SLIDE 35

Pop-up and Modals

  • 2. Operable

2.1 Keyboard Accessible

  • Please do not use pop-ups
  • It is very difficult to make them keyboard accessible
  • If they are used, it should be unavoidable

(that means not an email sign up or an advertisement)

slide-36
SLIDE 36

Give user control over things that move, like rotating banners.

  • 2. Operable

2.2 Enough Time

  • Timing Adjustable
  • Pause, Play, next, back
  • Must have aria attibutes
slide-37
SLIDE 37

Warning!

slide-38
SLIDE 38

Don’t do this

  • 2. Operable

2.3 Seizures

slide-39
SLIDE 39

Provide ways to help users navigate, find content, and determine where they are.

  • 2. Operable

2.4 Navigable

  • Bypass blocks (skip to links)
  • Pages have titles
  • Focus order
  • Link purpose
  • Provide more than one way to get to a page
  • Use headings and Labels
  • Focus must be visible on all elements that can have focus
slide-40
SLIDE 40

Bypass Blocks

  • 2. Operable

2.4 Navigable

<h1>Logos</h1> <nav>navigation</nav> <p>Main body text.</p> <h2>Main body text.</h2>

slide-41
SLIDE 41

Bypass Blocks (Skip-to links)

  • 2. Operable

2.4 Navigable

slide-42
SLIDE 42

Focus visible and focus order

  • 2. Operable

2.4 Navigable

Manual Check

slide-43
SLIDE 43

<p> is for Paragraphs

Search engines and screen readers use HTML to understand your content.

  • <p> for paragraphs
  • <ol><ul> for lists
  • <h1><h2><h3>

is for headings and don’t skip headings

  • Tables ONLY for
  • data. No exceptions
  • 2. Operable

2.4 Navigable

slide-44
SLIDE 44

CMS Toolbar Headings

  • 2. Operable

2.4 Navigable

slide-45
SLIDE 45

Headings

It is good practice to nest headings properly. When stepping down through headings, skipping levels should be avoided. That means that an <h1> is followed by an <h1> or <h2>, an <h2> is followed by a <h2> or <h3> etc. When stepping up through headings it is counted as an Alert. Technically you can skip any number of levels.

  • 2. Operable

2.4 Navigable

slide-46
SLIDE 46

Proper use of headings

  • 2. Operable

2.4 Navigable

slide-47
SLIDE 47

Bad use of headings

  • 2. Operable

2.4 Navigable

slide-48
SLIDE 48

Link purpose/ ambiguous links

  • 2. Operable

2.4 Navigable

  • Bad:
  • “More”
  • “Read more”
  • “Learn more”
  • “Click here” ß NEVER DO THIS
  • Good Adequate:
  • “More news”
  • “Read full article”
  • “Learn more about cats”
  • “Click here to read more about cats”
slide-49
SLIDE 49
  • 2. Operable

2.4 Navigable

CMS Toolbar Link Options

slide-50
SLIDE 50

Good link text

  • 2. Operable

2.4 Navigable

slide-51
SLIDE 51

Bad link text

  • 2. Operable

2.4 Navigable

slide-52
SLIDE 52

Link purpose (advanced technique)

  • 2. Operable

2.4 Navigable

slide-53
SLIDE 53
  • 3. Understandable

3.1 Readable 3.2 Predictable 3.3 Input Assistance

Content and interface are understandable

slide-54
SLIDE 54

Language

  • 3. Understandable

3.1 Readable

  • Language of page can be programmatically

determined.

  • Language of Parts
  • Write it simple.
  • Provide summaries for large sections of text.
  • E.S.L.
slide-55
SLIDE 55

Don’t make the page do something the user did not ask for.

  • 3. Understandable

3.2 Predictable

  • Focus should not cause an action
  • On Input don’t make unexpected screen changes
  • Consistent navigation – Navigation should be persistent

and consistent on every page.

  • Consistent identification – Keep markup consistent from

page to page. Examples: Label form elements, wrap navigation in <nav> or provide aria role.

slide-56
SLIDE 56

Input assistance

  • 3. Understandable

3.3 Input Assistance

  • Make forms easy to understand
  • Provide labels for form elements
  • Provide help text
  • “To err is human”
  • Form Error Prevention
  • Help people recover

from errors

slide-57
SLIDE 57
  • 4. Robust

4.1 Compatible

Content can be used reliably by a wide variety of user agents, including assistive technologies

  • Validate your code - https://validator.w3.org
  • Name, Role, Value
slide-58
SLIDE 58

<p> is for Paragraphs

Search engines and screen readers use HTML to understand your content.

  • <p> for paragraphs
  • <ol><ul> for lists
  • <h1><h2><h3>

is for headings

  • Tables ONLY for
  • data. No exceptions
  • 4. Robust

4.1 Compatible

slide-59
SLIDE 59

What are the requirements for PDF?

  • Bad news:

90% of what you just heard applies to PDF files.

slide-60
SLIDE 60
  • Automated accessibility tools only

catch some of the issues.

  • Accessibility testing also requires the

human brain for manual testing.

Accessibility Testing

slide-61
SLIDE 61

Volunteers?

slide-62
SLIDE 62

Automated Tools

  • WAVE
  • Web accessibility evaluation tool developed by

WebAIM.org. that checks your page for compliance with WCAG 2.0

  • Color Contrast Analyzer
  • Color contrast evaluation tool.
  • It evaluates the page as it appears in the browser, so it is

able to handle text over gradients and advanced CSS attributes.

slide-63
SLIDE 63

WAVE tool: wave.webaim.org

slide-64
SLIDE 64

Color Contrast Analyzer: https://goo.gl/ooIQX6

slide-65
SLIDE 65

WAVE testing unc.edu demo

slide-66
SLIDE 66

Color Contrast Analyzer on unc.duke.edu demo

slide-67
SLIDE 67

Testing Tab index and :focus demo

slide-68
SLIDE 68

Testing with screen reader demo

slide-69
SLIDE 69

Steps

  • 1. WAVE it (or Axe it)
  • 2. Color Analyze it
  • 3. Check hover states
  • 4. Navigate with keyboard
  • 5. Check with Screen reader
slide-70
SLIDE 70

ANYTHING YOU DO HELPS!

J

Accessibility Testing

slide-71
SLIDE 71

Thank you!

Joel Crawford-Smith Senior Web Accessibility Administrator Academic & Media Technologies Duke University Office of Information Technology 919-613-4811 Jhc36@duke.edu Follow me on Twitter! @heart.cooks.mind