SlideShare a Scribd company logo
1 of 48
Download to read offline
Top Mistakes
 in Web Accessibility
 F R O N T R OW CO N F E R E N C E




KRAKÓW, 20.10.2011
3
TYPES
1. Bored manager
  T H E Y S AY


 “Disabled people are not
 in my target group”

 FAV O R I T E T O O L

 his blackberry
2. A future lover
   T H E Y S AY


 “I’ll AJAX all over your
 CSS3”

  FAV O R I T E T E C H N I Q U E

  hashbangs
3. Over-exciter
  T H E Y S AY


 “I created a text-
 only version of my
 church’s website”

 FAV O R I T E T O O L

 JS text resizer
You’ll need to deal with different types of people.



           Let’s get
          some facts

           straight
Benefits of web accessibility
✦   About 15% (5 mln) of total population in
    Poland live with some kind of disability
✦   The average age of web users increases
    every year
✦   Good for not proficient language users
✦   Meets legal requirements
✦   Everyone benefits! (think slower
    connections)
Benefits of web accessibility

✦   Strong overlap with: mobile web
    http://www.w3.org/TR/mwbp-wcag/
Benefits of web accessibility

✦   Strong overlap with: SEO
Types of disability
Visual           Hearing   Motor   Cognitive



✦   Blind
✦   Partial vision loss
✦   Color blindness
Visual          Hearing        Motor         Cognitive


    Video transcription (closed captioning) benefits not just
    those with hearing impairments.


✦   Disabling sound
✦   Content becomes searchable and quotable
Visual          Hearing          Motor          Cognitive

Motor impaired can find using keyboard or mouse problematic.
Alternative inputs can have different range of complexity, most frequent
being different types “switches”.
Visual            Hearing          Motor      Cognitive

    Cognitive problems occur to older users and those
    with worse level of document language.

✦   Increase readability
✦   Large headlines
✦   Descriptive link text
✦   Increased target area of navigation links
“For me being online is everything.
 It’s my hi-fi, my source of income,
  my supermarket, my telephone.
           It’s my way in”
               TeLynn Holdsworth, screen reader user




                                    http://www.flickr.com/photos/tjc/4084712050/
A brief guide
into frequent problems
Incorrect alternative text
Text provided as
the text alternative must present
   the content and function.
fig. Image based navigation
            with no alt text
BAD

 I <img src="" alt="Image of heart"> you.


GOOD




                                   Ferrari Daytona               Ferrari Daytona

Ferrari is an Italian sports   Ferrari is an Italian sports   Ferrari is an Italian sports
car manufacturer based in      car manufacturer based in      car manufacturer based in
Maranello, Italy.              Maranello, Italy.              Maranello, Italy.




   alt=”Ferrari Daytona”                  alt=””                   alt=”Buy Ferrari”
Some rules to remember…

  ✦   Context is important
  ✦   Short is better than long
  ✦   Avoid redundancy
  ✦   Skip “image of…” or “graphic of…”
  ✦   Describe function
  ✦   alt= "" for decorative images
Following the visual appearance
Semantics is the king



 <h3>        <ul>
Not changing defaults
Don’t do
                                          OUTLINE: 0;
                                               (or at least provide
                                                with alternatives)




2.4.7 Focus Visible: Any keyboard operable user interface has a mode of
operation where the keyboard focus indicator is visible. (Level AA)
Disabling mobile zoom
Don’t copy & paste
<meta name="viewport"
  content="width=device-width; initial-scale=1.0;
  maximum-scale=1.0; user-scalable=0;" />


     without testing
Failing in navigation
Lengthy mega drop-down



2.4.1 A mechanism is available to bypass blocks of content that are
repeated on multiple Web pages. (Level A)
Keep the proper structure
 of document headings.
Keep the proper structure
 of document headings.
Hiding content
 FROM SCREEN
                                           FROM SCREEN READERS
 .hidden {
     position: absolute;
     left: -10000px;                        .hide {
     top: auto;                                 display: none;
     width: 1px;                                visibility: hidden;
     height: 1px;                           }
     overflow: hidden;
 }



D I S P L AY O N F O C U S

       .hidden:focus { position: static; width: auto; height: auto; }
QUICK FIX
WAI-ARIA Landmark Roles


   Landmark                          HTML 5 element
 role=”application”                         none
   role=”banner”                            none
role=”complementary”                       <aside>
 role=”contentinfo”                        <footer>
    role=”main”                             none
  role=”navigation”                         <nav>
    role=”search”                           none

                    ~ The Paciello Group
Inaccessible forms
✦   Label your inputs               ✦   Check the tab order
✦   Group form elements             ✦   Make sure it’s JS independent



    WRONG:




Name: [radio button] Mr. [radio button] Mrs. [text input] [text input]
[text input] eMail Address Retype eMail
Form validation




        ~ Derek Featherstone: Aria and Progressive Enhancement
Ambiguous links
Read more                                    Click here


Success Criterion 2.4.4 - Link Purpose (In Context)
Failure 63: Failure of Success Criterion 2.4.4 due to providing link context only in content that is not
related to the link



Success Criterion 2.4.9 - Link Purpose (Link Only)
Failure 84: Failure of Success Criterion 2.4.9 due to using a non-specific link such as "click here" or
"more" without a mechanism to change the link text to specific text.
Adding interaction
Manage focus order!
Use ARIA roles to add meaning
        to your components and
     provide with readable data.

           <li role="menuitemcheckbox" aria-checked="true">
               Sort by Last Modified
           </li>




LIVE REGIONS for AJAX


aria-live="off"         aria-live="assertive"

aria-live="polite"      aria-live="rude"
Browser extensions
  Fangs
  Web Developer Toolbar
  Accessibility Evaluation Toolbar




Free screen readers
  NVDA
  ChromeVox
  FireVox
  VoiceOver
Fangs
                 No anchor text
No h e ading s                    No a l t te x
                                                  t




                                     S ubm i t n o t
                                                     be i ng
                                         re ad o u t
Thanks!

                                          Q&A


Wojtek Zając (@theanxy)
                                                    This work is licensed
http://www.slideshare.net/wojciechzajac                under a Creative
                                                    Commons Attribution
                                                    3.0 Unported License

More Related Content

Similar to Top Mistakes in Web Accessibility

Implementing Acessibility in Liferay 6.1
Implementing Acessibility in Liferay 6.1Implementing Acessibility in Liferay 6.1
Implementing Acessibility in Liferay 6.1
Julio Camarero
 
Yvonne Doll, Designing Content for Usability
Yvonne Doll, Designing Content for UsabilityYvonne Doll, Designing Content for Usability
Yvonne Doll, Designing Content for Usability
webcontent2007
 

Similar to Top Mistakes in Web Accessibility (20)

Web Accessibility Gone Wild
Web Accessibility Gone WildWeb Accessibility Gone Wild
Web Accessibility Gone Wild
 
Images for Everyone - ImageCon 2018
Images for Everyone - ImageCon 2018Images for Everyone - ImageCon 2018
Images for Everyone - ImageCon 2018
 
Images For Everyone
Images For EveryoneImages For Everyone
Images For Everyone
 
10 Simple Rules for Making My Site Accessible
10 Simple Rules for Making My Site Accessible10 Simple Rules for Making My Site Accessible
10 Simple Rules for Making My Site Accessible
 
Web Accessibility Gone Wild (Now Even MORE Wilder!)
Web Accessibility Gone Wild (Now Even MORE Wilder!)Web Accessibility Gone Wild (Now Even MORE Wilder!)
Web Accessibility Gone Wild (Now Even MORE Wilder!)
 
Testing For Web Accessibility
Testing For Web AccessibilityTesting For Web Accessibility
Testing For Web Accessibility
 
How Accessibility Made Me a Better Developer
How Accessibility Made Me a Better DeveloperHow Accessibility Made Me a Better Developer
How Accessibility Made Me a Better Developer
 
Web Accessibility - A feature you can build
Web Accessibility - A feature you can buildWeb Accessibility - A feature you can build
Web Accessibility - A feature you can build
 
Selfish Accessibility: Government Digital Service
Selfish Accessibility: Government Digital ServiceSelfish Accessibility: Government Digital Service
Selfish Accessibility: Government Digital Service
 
Selfish Accessibility: WordCamp London 2017
Selfish Accessibility: WordCamp London 2017Selfish Accessibility: WordCamp London 2017
Selfish Accessibility: WordCamp London 2017
 
Accessibility - A feature you can build
Accessibility - A feature you can buildAccessibility - A feature you can build
Accessibility - A feature you can build
 
Selfish Accessibility — WordCamp Europe 2017
Selfish Accessibility — WordCamp Europe 2017Selfish Accessibility — WordCamp Europe 2017
Selfish Accessibility — WordCamp Europe 2017
 
DG Group - Active Or Passive Website
DG Group - Active Or Passive WebsiteDG Group - Active Or Passive Website
DG Group - Active Or Passive Website
 
Worry free web development
Worry free web developmentWorry free web development
Worry free web development
 
Implementing Acessibility in Liferay 6.1
Implementing Acessibility in Liferay 6.1Implementing Acessibility in Liferay 6.1
Implementing Acessibility in Liferay 6.1
 
Yvonne Doll, Designing Content for Usability
Yvonne Doll, Designing Content for UsabilityYvonne Doll, Designing Content for Usability
Yvonne Doll, Designing Content for Usability
 
Ajax and Accessibiity
Ajax and AccessibiityAjax and Accessibiity
Ajax and Accessibiity
 
Open and Accessible UI
Open and Accessible UIOpen and Accessible UI
Open and Accessible UI
 
Developing for LinkedIn's Application Platform
Developing for LinkedIn's Application PlatformDeveloping for LinkedIn's Application Platform
Developing for LinkedIn's Application Platform
 
Web Accessbility
Web AccessbilityWeb Accessbility
Web Accessbility
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
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
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.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
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
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
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 

Top Mistakes in Web Accessibility

  • 1. Top Mistakes in Web Accessibility F R O N T R OW CO N F E R E N C E KRAKÓW, 20.10.2011
  • 3. 1. Bored manager T H E Y S AY “Disabled people are not in my target group” FAV O R I T E T O O L his blackberry
  • 4. 2. A future lover T H E Y S AY “I’ll AJAX all over your CSS3” FAV O R I T E T E C H N I Q U E hashbangs
  • 5. 3. Over-exciter T H E Y S AY “I created a text- only version of my church’s website” FAV O R I T E T O O L JS text resizer
  • 6. You’ll need to deal with different types of people. Let’s get some facts straight
  • 7. Benefits of web accessibility ✦ About 15% (5 mln) of total population in Poland live with some kind of disability ✦ The average age of web users increases every year ✦ Good for not proficient language users ✦ Meets legal requirements ✦ Everyone benefits! (think slower connections)
  • 8. Benefits of web accessibility ✦ Strong overlap with: mobile web http://www.w3.org/TR/mwbp-wcag/
  • 9. Benefits of web accessibility ✦ Strong overlap with: SEO
  • 11. Visual Hearing Motor Cognitive ✦ Blind ✦ Partial vision loss ✦ Color blindness
  • 12. Visual Hearing Motor Cognitive Video transcription (closed captioning) benefits not just those with hearing impairments. ✦ Disabling sound ✦ Content becomes searchable and quotable
  • 13. Visual Hearing Motor Cognitive Motor impaired can find using keyboard or mouse problematic. Alternative inputs can have different range of complexity, most frequent being different types “switches”.
  • 14. Visual Hearing Motor Cognitive Cognitive problems occur to older users and those with worse level of document language. ✦ Increase readability ✦ Large headlines ✦ Descriptive link text ✦ Increased target area of navigation links
  • 15. “For me being online is everything. It’s my hi-fi, my source of income, my supermarket, my telephone. It’s my way in” TeLynn Holdsworth, screen reader user http://www.flickr.com/photos/tjc/4084712050/
  • 16. A brief guide into frequent problems
  • 18. Text provided as the text alternative must present the content and function.
  • 19. fig. Image based navigation with no alt text
  • 20. BAD I <img src="" alt="Image of heart"> you. GOOD Ferrari Daytona Ferrari Daytona Ferrari is an Italian sports Ferrari is an Italian sports Ferrari is an Italian sports car manufacturer based in car manufacturer based in car manufacturer based in Maranello, Italy. Maranello, Italy. Maranello, Italy. alt=”Ferrari Daytona” alt=”” alt=”Buy Ferrari”
  • 21. Some rules to remember… ✦ Context is important ✦ Short is better than long ✦ Avoid redundancy ✦ Skip “image of…” or “graphic of…” ✦ Describe function ✦ alt= "" for decorative images
  • 22. Following the visual appearance
  • 23.
  • 24. Semantics is the king <h3> <ul>
  • 26.
  • 27. Don’t do OUTLINE: 0; (or at least provide with alternatives) 2.4.7 Focus Visible: Any keyboard operable user interface has a mode of operation where the keyboard focus indicator is visible. (Level AA)
  • 29. Don’t copy & paste <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> without testing
  • 31. Lengthy mega drop-down 2.4.1 A mechanism is available to bypass blocks of content that are repeated on multiple Web pages. (Level A)
  • 32. Keep the proper structure of document headings.
  • 33. Keep the proper structure of document headings.
  • 34. Hiding content FROM SCREEN FROM SCREEN READERS .hidden { position: absolute; left: -10000px; .hide { top: auto; display: none; width: 1px; visibility: hidden; height: 1px; } overflow: hidden; } D I S P L AY O N F O C U S .hidden:focus { position: static; width: auto; height: auto; }
  • 36. WAI-ARIA Landmark Roles Landmark HTML 5 element role=”application” none role=”banner” none role=”complementary” <aside> role=”contentinfo” <footer> role=”main” none role=”navigation” <nav> role=”search” none ~ The Paciello Group
  • 38. Label your inputs ✦ Check the tab order ✦ Group form elements ✦ Make sure it’s JS independent WRONG: Name: [radio button] Mr. [radio button] Mrs. [text input] [text input] [text input] eMail Address Retype eMail
  • 39. Form validation ~ Derek Featherstone: Aria and Progressive Enhancement
  • 41. Read more Click here Success Criterion 2.4.4 - Link Purpose (In Context) Failure 63: Failure of Success Criterion 2.4.4 due to providing link context only in content that is not related to the link Success Criterion 2.4.9 - Link Purpose (Link Only) Failure 84: Failure of Success Criterion 2.4.9 due to using a non-specific link such as "click here" or "more" without a mechanism to change the link text to specific text.
  • 42.
  • 45. Use ARIA roles to add meaning to your components and provide with readable data. <li role="menuitemcheckbox" aria-checked="true"> Sort by Last Modified </li> LIVE REGIONS for AJAX aria-live="off" aria-live="assertive" aria-live="polite" aria-live="rude"
  • 46. Browser extensions Fangs Web Developer Toolbar Accessibility Evaluation Toolbar Free screen readers NVDA ChromeVox FireVox VoiceOver
  • 47. Fangs No anchor text No h e ading s No a l t te x t S ubm i t n o t be i ng re ad o u t
  • 48. Thanks! Q&A Wojtek Zając (@theanxy) This work is licensed http://www.slideshare.net/wojciechzajac under a Creative Commons Attribution 3.0 Unported License