SlideShare ist ein Scribd-Unternehmen logo
1 von 65
Downloaden Sie, um offline zu lesen
Web Accessibility
November 14, 2011
Charlotte User Experience Meetup Group
Zoe Mickley Gillenwater
@zomigi
I do CSS stuff

      Stunning CSS3:
      A Project-based Guide to the Latest in CSS
      www.stunningcss3.com



      Flexible Web Design:
      Creating Liquid and Elastic Layouts with CSS
      www.flexiblewebbook.com



                                                     2
And of course accessibility too
       Web Accessibility Principles for lynda.com
       Accessibility Specialist on AT&T's Design
       Standards team
       Previously worked for state/federal
       government




                                                    3
what
is web accessibility



                       4
perceive   understand




navigate   interact
                        5
Terms of the trade
• “A11y” is abbreviation for “accessibility”
  (“a” plus 11 letters plus “y”)
• Refer to “people with disabilities” not
  “disabled people”




                                               6
who
is affected



              7
Types of disabilities
• Visual: blind, low vision, tunnel vision,
  color blindness...
• Hearing: deafness, hard of hearing...
• Mobility: arthritis, cerebral palsy,
  paralysis, muscular dystrophy...
• Cognitive: dyslexia, autism...
• Epilepsy



                                              8
54 million
          people with disabilities in US



Source: Survey of Income and Program Participation, www.disabilitystatistics.org/faq.cfm#Q9   9
how
are they affected



                    10
Test with screen readers
• NVDA: free, Windows
  – www.nvda-project.org
• VoiceOver: included on Mac and iOS
  – www.apple.com/accessibility/voiceover/
• JAWS: free trial version
  – www.freedomscientific.com
• Window-Eyes: free trial version
  – www.gwmicro.com


                                             11
why
make web pages accessible



                            12
Helping people is the ethical,
right thing to do.




                                 13
In many cases, doing it
accessibly is just as easy as
doing it inaccessibly.
Sometimes easier.




                                14
benefits              risks
of accessibility   of inaccessibility




                                        15
Benefit: number of customers
• 24.8% of US population are disabled (54
  million) or over 65 and not yet disabled
  (23 million)
• 10,000 people turn 65 every day in US
• Baby Boomers own 77% of all financial
  assets in US




                                             16
Benefit: search engine ranking
• Keywords in alt text (especially linked
  images)
• Headings weighted more




                                            17
Benefit: improved usability
• Often make things easier to use by
  everyone, especially on mobile




                                       18
Benefit: easier to maintain
• Cleaner, more consistent HTML
• Easier to apply and change CSS




                                   19
Risk: litigation
• 2006: Target sued by visually impaired,
  cost about $10 million
• 2010: Disney sued by visually impaired
• 2011: Netflix sued by deaf
• 2011: CNN sued by deaf




                                            20
Risk: non-compliance with
Section 508
• Required for Federal/Federally-funded
  sites
• Often followed by local gov't too




                                          21
Risk: non-compliance with
upcoming changes to ADA
• Web accessibility will be added as
  requirement to ADA (Americans with
  Disabilities Act)
• Probably going to use WCAG 2.0 Level
  AA as the standard
• Probably going to become law 2013




                                         22
"Let me be clear. It is and has been the position
of the Department of Justice since the late
1990s that Title III of the ADA applies to Web
sites. … Companies that do not consider
accessibility in their Web site or product
development will come to regret that decision,
because we intend to use every tool at our
disposal to ensure that people with disabilities
have equal access..."
                                                 ―Thomas Perez
Assistant Attorney General, Civil Rights Division, US Dept. of Justice
                              excerpt from speech on April 15, 2010
                                                                         23
how
to make web pages accessible



                               24
Follow WCAG 2.0
• Web Content Accessibility Guidelines
  created by W3C's Web Accessibility
  Initiative (WAI)
• Recommendation since 2008
• Broad and testable success criteria
• Three levels: A, AA, AAA




                                         25
Learning about WCAG 2.0
• Use the “How to Meet WCAG 2.0”
  customizable quick reference at
  www.w3.org/WAI/WCAG20/quickref/
• Also check out checklist with examples
  at http://webaim.org/standards/
  wcag/checklist




                                           26
all success criteria are

    important
but some techniques will give you
  a bigger bang for your buck


                                    27
Let's talk about some a11y
techniques that I think:
a) will give you the biggest impact if you
   must pick and choose
b) I have time to cover today




                                             28
headings
aid understanding and navigation
                                   29
Headings' purposes:
• Aid understanding of text
• Aid understanding of page structure
• Aid navigation within a page




                                        30
How screen reader users find
 content on a lengthy page
                                                          Navigate headings
                                                          Use "find"
                                        9%                Navigate links
                                               13%        Read the page


                   57%
                                                 22%




Source: WebAIM Screen Reader Survey #3,                                       31
http://webaim.org/projects/screenreadersurvey3/#finding
Navigating by headings
• Keyboard shortcuts to jump to next
  heading or heading of particular level
• View list of all headings in page and
  choose one to move to




                                           32
Writing effective heading text
•   Keep it brief
•   Make it descriptive, meaningful
•   Use once per page
•   Put most important words first




                                      33
Good HTML4 heading structure
• Start with <h1> for main content's title,
  and optionally the site name
• Follow <h1> with lower levels in logical
  hierarchy
• Avoid skipping levels
• Be consistent with section-level
  headings



                                              34
HTML 4 heading structure
<h1>Site Name</h1>
<div id="sidebar">
   <h2>Section Head</h2>
</div>
<div id="content">
   <h1>Main Content Title</h1>
   <p>Text text text</p>
   <h2>Sub-head</h2>
   <p>Text text text</p>
   <h3>Sub-sub-head</h3>
   <p>Text text text</p>
</div>                           35
Good HTML5 heading structure
• Use the same structure as HTML 4, or...
• Start hierarchy over inside each
  sectioning element
  – Spec recommends using only <h1>
    throughout
  – Poor support in browsers and screen
    readers




                                            36
HTML5 heading structure
<h1>Site Name</h1>
<aside>
   <h1>Section Head</h1>
</aside>
<article>
   <h1>Main Content Title</h1>
   <p>Text text text</p>
   <section>
      <h1>Sub-head</h1>
      <p>Text text text</p>
      <section>
            <h1>Sub-sub-head</h1>
            <p>Text text text</p>
      </section>
   </section>
</article>                          37
links
aid understanding and navigation
                                   38
Navigating by links
• Tab or keyboard shortcuts to jump to
  next link or link of particular type
• View list of all links in page and choose
  one to follow




                                              39
Writing effective link text
• Same guidelines as headings (brief,
  descriptive, unique, front-loaded)
• Avoid “click here,” “learn more,” etc.
  – If needed, can supplement with words
    hidden with CSS
  – Don't supplement with title attribute




                                            40
Add “skip navigation” links
• In-page link to let user jump over long or
  repetitive content (usually primary nav)
• Best to keep visible, as sighted people
  use them too
• If you must hide them:
  – use CSS that keeps them “visible” to screen
    readers; see http://yaccessibilityblog.com/
    library/css-clip-hidden-content.html
  – bring them into view on focus; see
    http://webaim.org/techniques/skipnav/#focus
                                               41
Hiding and showing skip links
#skip a {
   position: absolute;
   text-indent: -999em;
}
#skip a:active, #skip a:focus {
   text-indent: 0;
}




                                  42
images
convey content in alt text




                             43
saying

 “alt tag”
makes baby kittens cry



                         44
Where alt attribute is required
• <img> element
• <area> element (inside image maps)
• <input type="image">




                                       45
Universal alt text guidelines
• Don't describe the image; provide a text
  equivalent of its content
• Keep it brief, but make sure they get
  everything that's relevant
• If nothing's relevant, use empty alt




                                             46
role of
                                                                  Deciding
  decorative
                       image?
                                       informative
                                                                  on proper
                                                                   alt text
    alt=""
                                        presents
    CSS background                      new info?
                                  no                    yes
                                                                        type of
                                                                         info?
                               alt=""
                                                         short,                   long,
                                                           link                   structured

                                                     alt="short info          alt="short info"
                                                     or link label"           longdesc="link to
                                                                              pg w/ long text"
Adapted from www.4syllables.com.au/2010/12/text-alternatives-decision-tree/                    47
Decorative images
• Using alt="" makes screen reader skip
  over them
• Examples:
  – dividing lines
  – bullets
  – cliché smiling customers, business people
    shaking hands, etc.




                                                48
Informational images
• If its text equivalent already on page,
  use alt="" so screen reader doesn't
  hear twice
• If providing new information, put that in
  alt attribute
  – If image shows text (eg, graphic button, ad
    banner), use same text for alt
  – If image is link, describe where link goes



                                                  49
pop quiz
on image alt text examples



                             50
alt="search"   ?


                   51
?   alt="Online Banking. Take charge
         of your money with 24/7
         access. Stay up to date, know
         your balance, get alerts. Get
         started."
                                         52
?   alt=""

             53
?   alt="long ivory cable
         knit sweater with
         rounded hem"
                         54
?   alt=""
             55
forms
input correct info efficiently




                                 56
Associate fields with labels
• Helps:
  – screen reader users know what to put in
    each field
  – mobility-impaired users click on small fields
• Set for attribute on label to ID of field
  – <label for="city">City</label>
    <input type="text" name="city"
    id="city">



                                                    57
When you can't use label
• Several fields labeled by one piece of
  text (eg, a date, a Social Security
  number, fields in a table)
• Labeling text is placeholder text within
  field (eg, search field)




                                             58
Alternatives to label
• Add labels for each field, hide those
  you don't want seen with off-screen CSS
• Use label but position over field to
  create appearance of placeholder text
• Use title attribute on field
• Use aria-labelledby or aria-label
  – <span id="foo">Foo</span>
    <input type="text" name="foo"
    aria-labelledby="foo">
  – <input type="text" name="foo"
    aria-label="Insert foo here">           59
homework
other stuff you should learn about



                                     60
Keyboard-only operation
• Everything should work and be
  understandable without a mouse
  – Natively focusable controls
  – tabindex set to 0 or -1
  – Device-independent JavaScript events
• Flow of page should be logical
• Focus should be visible



                                           61
WAI-ARIA
• Landmark roles to label page sections
• Widget roles, states, and properties to
  make interactive controls more usable
• Live regions to announce changing page
  content to screen readers
• Learn more, see demos, etc, at
  https://developer.mozilla.org/en/ARIA



                                            62
Color issues
• Don't use color as only way of conveying
  a piece of info (eg, required fields)
• Ensure adequate color contrast for low
  vision users, but not too much for
  dyslexic users
  – http://blackwidows.co.uk/resources/color-
    contrast-analyser.php
  – http://www.d.umn.edu/itss/support/Training
    /Online/webdesign/tools.html#colortools


                                                 63
Learn more
Download slides, see more resources at
www.zomigi.com/blog/web-accessibility-
presentation-resources




                                         64
Questions?
Zoe Mickley Gillenwater
@zomigi
design@zomigi.com
zomigi.com | stunningcss3.com | flexiblewebbook.com

Picture credits:
Slide 15: http://www.flickr.com/photos/sivaprakash/294755142/,
http://www.flickr.com/photos/devar/49065237/
Slide 18: http://www.flickr.com/photos/50393252@N02/4822063888/
Slide 29: http://www.flickr.com/photos/trentstrohm/205858578/
Slide 28: http://www.flickr.com/photos/intherough/3894540275/
Slide 43: http://www.flickr.com/photos/antoaneta/2669201750/
Slide 56: http://www.flickr.com/photos/seanvenn/3910867328/



                                                                  65

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Web accessibility 101: The why, who, what, and how of "a11y"
Web accessibility 101: The why, who, what, and how of "a11y"Web accessibility 101: The why, who, what, and how of "a11y"
Web accessibility 101: The why, who, what, and how of "a11y"
 
Web Accessibility for Web Developers
Web Accessibility for Web DevelopersWeb Accessibility for Web Developers
Web Accessibility for Web Developers
 
ADA Compliance and Website Accessibility
ADA Compliance and Website AccessibilityADA Compliance and Website Accessibility
ADA Compliance and Website Accessibility
 
Web Accessibility
Web AccessibilityWeb Accessibility
Web Accessibility
 
Accessibilitytesting public
Accessibilitytesting publicAccessibilitytesting public
Accessibilitytesting public
 
Digital Accessibility - The Quick Wins
Digital Accessibility - The Quick WinsDigital Accessibility - The Quick Wins
Digital Accessibility - The Quick Wins
 
Web accessibility: it’s everyone’s responsibility
Web accessibility: it’s everyone’s responsibilityWeb accessibility: it’s everyone’s responsibility
Web accessibility: it’s everyone’s responsibility
 
Accessibility
AccessibilityAccessibility
Accessibility
 
WCAG
WCAGWCAG
WCAG
 
What Is Accessibility Testing?
What Is Accessibility Testing?What Is Accessibility Testing?
What Is Accessibility Testing?
 
A Web for Everyone: Accessibility as a design challenge
A Web for Everyone: Accessibility as a design challengeA Web for Everyone: Accessibility as a design challenge
A Web for Everyone: Accessibility as a design challenge
 
Web Accessibility
Web AccessibilityWeb Accessibility
Web Accessibility
 
Practical tools for Web Accessibility testing
Practical tools for Web Accessibility testingPractical tools for Web Accessibility testing
Practical tools for Web Accessibility testing
 
Accessibility Testing 101
Accessibility Testing 101Accessibility Testing 101
Accessibility Testing 101
 
Implementing WCAG 2.2 into Your Digital Strategy
Implementing WCAG 2.2 into Your Digital StrategyImplementing WCAG 2.2 into Your Digital Strategy
Implementing WCAG 2.2 into Your Digital Strategy
 
Automated-Accessibility-Testing
Automated-Accessibility-TestingAutomated-Accessibility-Testing
Automated-Accessibility-Testing
 
Web content accessibility
Web content accessibilityWeb content accessibility
Web content accessibility
 
What is accessibility?
What is accessibility?What is accessibility?
What is accessibility?
 
ADA Compliance & Website Accessibility
ADA Compliance & Website AccessibilityADA Compliance & Website Accessibility
ADA Compliance & Website Accessibility
 
Accessibility and why it matters
Accessibility and why it mattersAccessibility and why it matters
Accessibility and why it matters
 

Ähnlich wie Web Accessibility

Website Development Process
Website Development ProcessWebsite Development Process
Website Development Process
Hend Al-Khalifa
 

Ähnlich wie Web Accessibility (20)

How to create accessible websites - Web Accessibility Summit
How to create accessible websites - Web Accessibility SummitHow to create accessible websites - Web Accessibility Summit
How to create accessible websites - Web Accessibility Summit
 
How to engineer accessible websites
How to engineer accessible websitesHow to engineer accessible websites
How to engineer accessible websites
 
Web accessibility with Ametys CMS
Web accessibility with Ametys CMSWeb accessibility with Ametys CMS
Web accessibility with Ametys CMS
 
Accessible thinking in your IA
Accessible thinking in your IAAccessible thinking in your IA
Accessible thinking in your IA
 
Beginners Guide to Accessibility
Beginners Guide to AccessibilityBeginners Guide to Accessibility
Beginners Guide to Accessibility
 
How to create accessible websites - WordCamp New York
How to create accessible websites - WordCamp New YorkHow to create accessible websites - WordCamp New York
How to create accessible websites - WordCamp New York
 
Online Content Strategy
Online Content StrategyOnline Content Strategy
Online Content Strategy
 
Making your website accessible
Making your website accessibleMaking your website accessible
Making your website accessible
 
Digital Content for Business
Digital Content for BusinessDigital Content for Business
Digital Content for Business
 
Web Accessibility and Design
Web Accessibility and DesignWeb Accessibility and Design
Web Accessibility and Design
 
How to Build an Accessible WordPress Theme
How to Build an Accessible WordPress ThemeHow to Build an Accessible WordPress Theme
How to Build an Accessible WordPress Theme
 
How to create accessible websites - WordCamp Boston
How to create accessible websites - WordCamp BostonHow to create accessible websites - WordCamp Boston
How to create accessible websites - WordCamp Boston
 
Introduction to accessibility
Introduction to accessibilityIntroduction to accessibility
Introduction to accessibility
 
Midcamp2016
Midcamp2016Midcamp2016
Midcamp2016
 
Designing Learning #eldc2011
Designing Learning #eldc2011Designing Learning #eldc2011
Designing Learning #eldc2011
 
Web Accessibility for the 21st Century
Web Accessibility for the 21st CenturyWeb Accessibility for the 21st Century
Web Accessibility for the 21st Century
 
CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive Design
 
Web accessibility workshop 2
Web accessibility workshop 2Web accessibility workshop 2
Web accessibility workshop 2
 
Accessibility for Fun and Profit
Accessibility for Fun and ProfitAccessibility for Fun and Profit
Accessibility for Fun and Profit
 
Website Development Process
Website Development ProcessWebsite Development Process
Website Development Process
 

Mehr von Zoe Gillenwater

CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)
Zoe Gillenwater
 

Mehr von Zoe Gillenwater (20)

Using Flexbox Today (Frontier Conf 2016)
Using Flexbox Today (Frontier Conf 2016)Using Flexbox Today (Frontier Conf 2016)
Using Flexbox Today (Frontier Conf 2016)
 
Using Flexbox Today (Generate Sydney 2016)
Using Flexbox Today (Generate Sydney 2016)Using Flexbox Today (Generate Sydney 2016)
Using Flexbox Today (Generate Sydney 2016)
 
Using Flexbox Today (CSS Summit 2016)
Using Flexbox Today (CSS Summit 2016)Using Flexbox Today (CSS Summit 2016)
Using Flexbox Today (CSS Summit 2016)
 
Using Flexbox Today (Frontend United 2016)
Using Flexbox Today (Frontend United 2016)Using Flexbox Today (Frontend United 2016)
Using Flexbox Today (Frontend United 2016)
 
Show vs. Tell in UX Design (Front in Amsterdam)
Show vs. Tell in UX Design (Front in Amsterdam)Show vs. Tell in UX Design (Front in Amsterdam)
Show vs. Tell in UX Design (Front in Amsterdam)
 
Enhancing Responsiveness with Flexbox (CSS Conf EU 2015)
Enhancing Responsiveness with Flexbox (CSS Conf EU 2015)Enhancing Responsiveness with Flexbox (CSS Conf EU 2015)
Enhancing Responsiveness with Flexbox (CSS Conf EU 2015)
 
Responsive Flexbox Inspiration (Responsive Day Out)
Responsive Flexbox Inspiration (Responsive Day Out)Responsive Flexbox Inspiration (Responsive Day Out)
Responsive Flexbox Inspiration (Responsive Day Out)
 
Enhancing Responsiveness With Flexbox (CSS Day)
Enhancing Responsiveness With Flexbox (CSS Day)Enhancing Responsiveness With Flexbox (CSS Day)
Enhancing Responsiveness With Flexbox (CSS Day)
 
CSS Lessons Learned the Hard Way (ConvergeSE)
CSS Lessons Learned the Hard Way (ConvergeSE)CSS Lessons Learned the Hard Way (ConvergeSE)
CSS Lessons Learned the Hard Way (ConvergeSE)
 
Enhancing Responsiveness With Flexbox (Smashing Conference)
Enhancing Responsiveness With Flexbox (Smashing Conference)Enhancing Responsiveness With Flexbox (Smashing Conference)
Enhancing Responsiveness With Flexbox (Smashing Conference)
 
Enhancing Responsiveness with Flexbox (RWD Summit)
Enhancing Responsiveness with Flexbox (RWD Summit)Enhancing Responsiveness with Flexbox (RWD Summit)
Enhancing Responsiveness with Flexbox (RWD Summit)
 
CSS Lessons Learned the Hard Way (Beyond Tellerand)
CSS Lessons Learned the Hard Way (Beyond Tellerand)CSS Lessons Learned the Hard Way (Beyond Tellerand)
CSS Lessons Learned the Hard Way (Beyond Tellerand)
 
CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)
 
Leveling Up With Flexbox (Smart Web Conference)
Leveling Up With Flexbox (Smart Web Conference)Leveling Up With Flexbox (Smart Web Conference)
Leveling Up With Flexbox (Smart Web Conference)
 
Leveling Up with Flexbox (Smashing Conference)
Leveling Up with Flexbox (Smashing Conference)Leveling Up with Flexbox (Smashing Conference)
Leveling Up with Flexbox (Smashing Conference)
 
Just One (CSS Dev Conference keynote)
Just One (CSS Dev Conference keynote)Just One (CSS Dev Conference keynote)
Just One (CSS Dev Conference keynote)
 
Putting Flexbox into Practice (Fronteers)
Putting Flexbox into Practice (Fronteers)Putting Flexbox into Practice (Fronteers)
Putting Flexbox into Practice (Fronteers)
 
Putting Flexbox into Practice
Putting Flexbox into PracticePutting Flexbox into Practice
Putting Flexbox into Practice
 
CSS3 Layout
CSS3 LayoutCSS3 Layout
CSS3 Layout
 
Building Responsive Layouts
Building Responsive LayoutsBuilding Responsive Layouts
Building Responsive Layouts
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Web Accessibility

  • 1. Web Accessibility November 14, 2011 Charlotte User Experience Meetup Group Zoe Mickley Gillenwater @zomigi
  • 2. I do CSS stuff Stunning CSS3: A Project-based Guide to the Latest in CSS www.stunningcss3.com Flexible Web Design: Creating Liquid and Elastic Layouts with CSS www.flexiblewebbook.com 2
  • 3. And of course accessibility too Web Accessibility Principles for lynda.com Accessibility Specialist on AT&T's Design Standards team Previously worked for state/federal government 3
  • 5. perceive understand navigate interact 5
  • 6. Terms of the trade • “A11y” is abbreviation for “accessibility” (“a” plus 11 letters plus “y”) • Refer to “people with disabilities” not “disabled people” 6
  • 8. Types of disabilities • Visual: blind, low vision, tunnel vision, color blindness... • Hearing: deafness, hard of hearing... • Mobility: arthritis, cerebral palsy, paralysis, muscular dystrophy... • Cognitive: dyslexia, autism... • Epilepsy 8
  • 9. 54 million people with disabilities in US Source: Survey of Income and Program Participation, www.disabilitystatistics.org/faq.cfm#Q9 9
  • 11. Test with screen readers • NVDA: free, Windows – www.nvda-project.org • VoiceOver: included on Mac and iOS – www.apple.com/accessibility/voiceover/ • JAWS: free trial version – www.freedomscientific.com • Window-Eyes: free trial version – www.gwmicro.com 11
  • 12. why make web pages accessible 12
  • 13. Helping people is the ethical, right thing to do. 13
  • 14. In many cases, doing it accessibly is just as easy as doing it inaccessibly. Sometimes easier. 14
  • 15. benefits risks of accessibility of inaccessibility 15
  • 16. Benefit: number of customers • 24.8% of US population are disabled (54 million) or over 65 and not yet disabled (23 million) • 10,000 people turn 65 every day in US • Baby Boomers own 77% of all financial assets in US 16
  • 17. Benefit: search engine ranking • Keywords in alt text (especially linked images) • Headings weighted more 17
  • 18. Benefit: improved usability • Often make things easier to use by everyone, especially on mobile 18
  • 19. Benefit: easier to maintain • Cleaner, more consistent HTML • Easier to apply and change CSS 19
  • 20. Risk: litigation • 2006: Target sued by visually impaired, cost about $10 million • 2010: Disney sued by visually impaired • 2011: Netflix sued by deaf • 2011: CNN sued by deaf 20
  • 21. Risk: non-compliance with Section 508 • Required for Federal/Federally-funded sites • Often followed by local gov't too 21
  • 22. Risk: non-compliance with upcoming changes to ADA • Web accessibility will be added as requirement to ADA (Americans with Disabilities Act) • Probably going to use WCAG 2.0 Level AA as the standard • Probably going to become law 2013 22
  • 23. "Let me be clear. It is and has been the position of the Department of Justice since the late 1990s that Title III of the ADA applies to Web sites. … Companies that do not consider accessibility in their Web site or product development will come to regret that decision, because we intend to use every tool at our disposal to ensure that people with disabilities have equal access..." ―Thomas Perez Assistant Attorney General, Civil Rights Division, US Dept. of Justice excerpt from speech on April 15, 2010 23
  • 24. how to make web pages accessible 24
  • 25. Follow WCAG 2.0 • Web Content Accessibility Guidelines created by W3C's Web Accessibility Initiative (WAI) • Recommendation since 2008 • Broad and testable success criteria • Three levels: A, AA, AAA 25
  • 26. Learning about WCAG 2.0 • Use the “How to Meet WCAG 2.0” customizable quick reference at www.w3.org/WAI/WCAG20/quickref/ • Also check out checklist with examples at http://webaim.org/standards/ wcag/checklist 26
  • 27. all success criteria are important but some techniques will give you a bigger bang for your buck 27
  • 28. Let's talk about some a11y techniques that I think: a) will give you the biggest impact if you must pick and choose b) I have time to cover today 28
  • 30. Headings' purposes: • Aid understanding of text • Aid understanding of page structure • Aid navigation within a page 30
  • 31. How screen reader users find content on a lengthy page Navigate headings Use "find" 9% Navigate links 13% Read the page 57% 22% Source: WebAIM Screen Reader Survey #3, 31 http://webaim.org/projects/screenreadersurvey3/#finding
  • 32. Navigating by headings • Keyboard shortcuts to jump to next heading or heading of particular level • View list of all headings in page and choose one to move to 32
  • 33. Writing effective heading text • Keep it brief • Make it descriptive, meaningful • Use once per page • Put most important words first 33
  • 34. Good HTML4 heading structure • Start with <h1> for main content's title, and optionally the site name • Follow <h1> with lower levels in logical hierarchy • Avoid skipping levels • Be consistent with section-level headings 34
  • 35. HTML 4 heading structure <h1>Site Name</h1> <div id="sidebar"> <h2>Section Head</h2> </div> <div id="content"> <h1>Main Content Title</h1> <p>Text text text</p> <h2>Sub-head</h2> <p>Text text text</p> <h3>Sub-sub-head</h3> <p>Text text text</p> </div> 35
  • 36. Good HTML5 heading structure • Use the same structure as HTML 4, or... • Start hierarchy over inside each sectioning element – Spec recommends using only <h1> throughout – Poor support in browsers and screen readers 36
  • 37. HTML5 heading structure <h1>Site Name</h1> <aside> <h1>Section Head</h1> </aside> <article> <h1>Main Content Title</h1> <p>Text text text</p> <section> <h1>Sub-head</h1> <p>Text text text</p> <section> <h1>Sub-sub-head</h1> <p>Text text text</p> </section> </section> </article> 37
  • 39. Navigating by links • Tab or keyboard shortcuts to jump to next link or link of particular type • View list of all links in page and choose one to follow 39
  • 40. Writing effective link text • Same guidelines as headings (brief, descriptive, unique, front-loaded) • Avoid “click here,” “learn more,” etc. – If needed, can supplement with words hidden with CSS – Don't supplement with title attribute 40
  • 41. Add “skip navigation” links • In-page link to let user jump over long or repetitive content (usually primary nav) • Best to keep visible, as sighted people use them too • If you must hide them: – use CSS that keeps them “visible” to screen readers; see http://yaccessibilityblog.com/ library/css-clip-hidden-content.html – bring them into view on focus; see http://webaim.org/techniques/skipnav/#focus 41
  • 42. Hiding and showing skip links #skip a { position: absolute; text-indent: -999em; } #skip a:active, #skip a:focus { text-indent: 0; } 42
  • 44. saying “alt tag” makes baby kittens cry 44
  • 45. Where alt attribute is required • <img> element • <area> element (inside image maps) • <input type="image"> 45
  • 46. Universal alt text guidelines • Don't describe the image; provide a text equivalent of its content • Keep it brief, but make sure they get everything that's relevant • If nothing's relevant, use empty alt 46
  • 47. role of Deciding decorative image? informative on proper alt text alt="" presents CSS background new info? no yes type of info? alt="" short, long, link structured alt="short info alt="short info" or link label" longdesc="link to pg w/ long text" Adapted from www.4syllables.com.au/2010/12/text-alternatives-decision-tree/ 47
  • 48. Decorative images • Using alt="" makes screen reader skip over them • Examples: – dividing lines – bullets – cliché smiling customers, business people shaking hands, etc. 48
  • 49. Informational images • If its text equivalent already on page, use alt="" so screen reader doesn't hear twice • If providing new information, put that in alt attribute – If image shows text (eg, graphic button, ad banner), use same text for alt – If image is link, describe where link goes 49
  • 50. pop quiz on image alt text examples 50
  • 51. alt="search" ? 51
  • 52. ? alt="Online Banking. Take charge of your money with 24/7 access. Stay up to date, know your balance, get alerts. Get started." 52
  • 53. ? alt="" 53
  • 54. ? alt="long ivory cable knit sweater with rounded hem" 54
  • 55. ? alt="" 55
  • 56. forms input correct info efficiently 56
  • 57. Associate fields with labels • Helps: – screen reader users know what to put in each field – mobility-impaired users click on small fields • Set for attribute on label to ID of field – <label for="city">City</label> <input type="text" name="city" id="city"> 57
  • 58. When you can't use label • Several fields labeled by one piece of text (eg, a date, a Social Security number, fields in a table) • Labeling text is placeholder text within field (eg, search field) 58
  • 59. Alternatives to label • Add labels for each field, hide those you don't want seen with off-screen CSS • Use label but position over field to create appearance of placeholder text • Use title attribute on field • Use aria-labelledby or aria-label – <span id="foo">Foo</span> <input type="text" name="foo" aria-labelledby="foo"> – <input type="text" name="foo" aria-label="Insert foo here"> 59
  • 60. homework other stuff you should learn about 60
  • 61. Keyboard-only operation • Everything should work and be understandable without a mouse – Natively focusable controls – tabindex set to 0 or -1 – Device-independent JavaScript events • Flow of page should be logical • Focus should be visible 61
  • 62. WAI-ARIA • Landmark roles to label page sections • Widget roles, states, and properties to make interactive controls more usable • Live regions to announce changing page content to screen readers • Learn more, see demos, etc, at https://developer.mozilla.org/en/ARIA 62
  • 63. Color issues • Don't use color as only way of conveying a piece of info (eg, required fields) • Ensure adequate color contrast for low vision users, but not too much for dyslexic users – http://blackwidows.co.uk/resources/color- contrast-analyser.php – http://www.d.umn.edu/itss/support/Training /Online/webdesign/tools.html#colortools 63
  • 64. Learn more Download slides, see more resources at www.zomigi.com/blog/web-accessibility- presentation-resources 64
  • 65. Questions? Zoe Mickley Gillenwater @zomigi design@zomigi.com zomigi.com | stunningcss3.com | flexiblewebbook.com Picture credits: Slide 15: http://www.flickr.com/photos/sivaprakash/294755142/, http://www.flickr.com/photos/devar/49065237/ Slide 18: http://www.flickr.com/photos/50393252@N02/4822063888/ Slide 29: http://www.flickr.com/photos/trentstrohm/205858578/ Slide 28: http://www.flickr.com/photos/intherough/3894540275/ Slide 43: http://www.flickr.com/photos/antoaneta/2669201750/ Slide 56: http://www.flickr.com/photos/seanvenn/3910867328/ 65