Girl Develop It

Intro to Web Accessibility

Class 1

Welcome!

Girl Develop It is here to provide affordable and accessible programs to learn software through mentorship and hands-on instruction.

Some "rules"

  • We are here for you!
  • Every question is important
  • Help each other
  • Have fun

Introductions

Tell us about yourself.

  • Who are you?
  • What do you hope to get out of the class?
  • What is your guilty pleasure song?

Who can use your sites?

Happy iPhone users

Photo credit: DeafTech News opens in a new window

What is accessibility?

  • Accessibility is about making your sites useful to as many people as possible.
  • Accessibility is about overcoming barriers.
  • Accessibility is about helping your users.

Why worry?

Dogs outside door, captioned 'We R UR community, beggin fer access'

Photo credit: circulating opens in a new window cc opens in a new window

Why make your sites accessible?

  • Expand your potential audience! 54 million people in the US have a disability, 1.8 million are unable to see printed words, and 16.1 million have a cognitive or mental illness that impedes daily functioning (source opens in a new window).
  • Be in compliance with legal guidelines, like Section 504/508 and WCAG 2.0.
  • Avoid potential lawsuits opens in a new window.
  • Do the right thing.

Web Content Accessibility
Guidelines (WCAG)

  • Main international standard for accessibility
  • Three levels: A, AA, AA (lowest to highest compliance
  • 4 categories: Perceivable, Operable, Understandable, and Robust

WCAG

screen shot of WCAG guidelines

Screen shot of WCAG 2.1 spec opens in a new window

Accessibility is for everyone

Curb cut on sidewalk

Photo credit: Sylvia Pellicore cc opens in a new window

Disability is a mismatch between an individual and their environment

Social model of disability

Benefits of Accessibility

  • Curb cuts were designed for wheelchairs, but others use them. Similarly, accessibility features end up helping everyone.
  • Some design best practices are accessibility best practices.
  • Accessibility features, like good alt text, can improve your search engine placement.

What are barriers to access?

Traffic barriers

Photo credit: sciencesque opens in a new window cc opens in a new window

Types of Disability

  • Visual disabilities: blind or low-sight, color blind
  • Hearing disabilities: deaf or hard-of-hearing
  • Physical disabilities: MS, paraplegic/quadriplegic, epilepsy
  • Cognitive disabilities: dyslexia, low literacy, learning disabilities

Temporary Disabilities

Cartoon of showing temporary and situational disabilities for each category

Microsoft Inclusive Design Toolkit opens in a new window

Accessibility is a process, not a checkbox

Checkmark with word 'chk' on blackboard

Photo credit: Matt Carman opens in a new window cc opens in a new window

Visual disabilities

Blind pedestrians with white canes

Photo credit: Braille Institute opens in a new window cc opens in a new window

What assistive technologies do
people use?

  • Screen readers
  • Browser zoom
  • Screen magnification
  • Refreshable braille display
  • High contrast displays

Demo: screen reader

Provide an alternate path

Signs pointing to handicap-accessible routes

Photo credit: Linh H. Nguyen opens in a new window cc opens in a new window

Alt text

  • Alternate text describes pictorial content in words.
  • Describe the function, not the content.
  • If an image is purely decorative, use alt="" to instruct a screen reader to skip it.
  • Instead of using "longdesc," provide a caption or link. Consider HTML5 figure and figcaption.
<img src="location.jpg" alt="brief description">

<figure>
  <img src="location.jpg">
  <figcaption>brief description</figcaption>
</figure>

Let's try it

What alt text would you give this image?

dog with spaghetti on its head

Other tips for screen readers

  • Content is more than just visual.
  • Skip to navigation links and landmark roles can users navigate a page.
  • External link indicators help prevent unexpected page changes.
  • Tables can be hard to navigate, so use them for tabular data, not for layout.

Example of skip navigation

screenshot of Facebook skip to main content options

Provide color contrast

Crosswalk with contrasting colors

Photo credit: antifluor opens in a new window cc opens in a new window

More on visual disabilities

  • If you use color to indicate something, also use another indicator. For example, underline links on hover or mark a required field with an asterisk.
  • Red/green color blindness is the most common, so avoid green next to red.
  • Include color names in product descriptions and show examples (article opens in a new window)
  • Have a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text. (Checker opens in a new window)
  • A user should be able to resize the page to 200%.

Let's try it

Color Contrast Checkers

Let's see if our slides are accessible by putting these color values into WebAIM's contrast checker opens in a new window

Pink Heading font color: #f05b62
Gray Text font color: #53555C

Let's try it

Page Resizing

  • Pick a page and try zooming in to 200%.
  • Can you still use the page?
  • You shouldn't have to scroll horizontally.
  • Use ems and percentages instead of pixels when you can.
  • Responsive design helps!

Provide good alternative text

Stick figure attaching captions to cats. Dialog- Man: Oh hi; I'm here from the internet; Man 2: What are you doing!?; Man: Gluing captions to your cats.

Credit: Randall Munroe opens in a new window cc opens in a new window

No, automatic captions don't count

YouTube video with nonsense auto captions: Look at your help literally now you can link your data from hell

Credit: Sylvia Pellicore, from YouTube

Hearing Disabilities

Lose the Mouse

Cat steals mouse

Photo credit: The IP Kat opens in a new window

Demo

The mouse isn't the only way to interact with the web.

Physical Disabilities

  • Using a mouse typically requires fine motor skills.
  • Many users with physical disabilities use the keyboard or other alternative input methods.
  • Make clickable elements large, and put space between them.
  • Avoid clickable page elements that move.
  • Animations with rapid flickers are not only annoying, they can trigger epileptic seizures.
  • These guidelines also help children and touchscreen users.

Don't overwhelm

Sign post with multiple signs

Photo credit: Thomas Hawk opens in a new window cc opens in a new window

Provide plenty of time

Alarm clock

Photo credit: Bethan opens in a new window cc opens in a new window

CAPTCHAs don't just catch robots

Confused robot

Photo credit: baboon opens in a new window cc opens in a new window

Dealing with cognitive disabilities

  • These users might have difficulties with learning, problem solving, comprehension, memory, or attention.
  • Minimize cognitive load--don't overwhelm the user.
  • Use common icons to mark important tasks and consider text labels.
  • If you have timed content (forms, image galleries, etc.) provide controls or allow users to extend time.
  • CAPTCHAs aren't blind-friendly, are very difficult for users with learning disabilities like dyslexia, and annoy everyone. Consider an alternative method opens in a new window.
  • Here is a Cognitive 101.
Screenshot of a Captcha

Let's try it

Visit a site you use frequently. Identify one accessibility feature that is part of the site and one feature you would change.

Show your users some love!

Disabled parking symbol with a heart

Photo credit: Sam Felder opens in a new window cc opens in a new window

Resources