ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Accessibility
               Lightning Talk

Sunday, April 10, 2011
When you hear ¡®accessibility¡¯
    what comes to mind?




Sunday, April 10, 2011
Do you think of this?




Sunday, April 10, 2011
...or this?




Sunday, April 10, 2011
Have you thought about this?




Sunday, April 10, 2011
or this?




Sunday, April 10, 2011
or even this?




Sunday, April 10, 2011
Accessibility is not about
              people with disabilities.




Sunday, April 10, 2011
Accessibility is about
                             people!


Sunday, April 10, 2011
Accessibility encompasses...




Sunday, April 10, 2011
Different Devices
          ¡ï Desktop Computer
          ¡ï Mobile
          ¡ï In Between (iPad, Netbooks)
          ¡ï TV¡¯s




Sunday, April 10, 2011
Different Interactions
          ¡ï Mouse
          ¡ï Keyboard
          ¡ï Touchscreen
          ¡ï Screenreader




Sunday, April 10, 2011
Different Technologies
          ¡ï JavaScript
          ¡ï CSS
          ¡ï Images
                               display: none;


Sunday, April 10, 2011
Tips For Better Accessibility




Sunday, April 10, 2011
Use The Right Element For The Job
           <p> = paragraph


           <h1>-<h6> = Heading 1 through 6


           <div class=¡±paragraph¡±>


           Using Tables for Layout




Sunday, April 10, 2011
Think About Source Order
        ¡ï Markup content the way it should be read NOT the
                way it should be displayed.

                Header                            Header

                                          Aside      Content
                 Content


                 Aside


Sunday, April 10, 2011
Use Alt Attributes on <img>
          ¡ï Include text to display as a backup
          ¡ï Provide context to what the user is missing
          ¡ï If the image is purely decoration use alt=¡±¡±




Sunday, April 10, 2011
Associate Inputs with Labels
          ¡ï Link descriptive text with an input field
          ¡ï Provides context about what is expected
          ¡ï Clicking label puts cursor in input field




Sunday, April 10, 2011
Implicit vs. Explicit Labels
           <label for=¡±name¡±>Name</label>
           <input type=¡±text¡± id=¡±name¡±>


           <label> Name
               <input type=¡±text¡±>
           </label>


           label { curser: pointer; }



Sunday, April 10, 2011
Use HTML5 Input Types
          ¡ï type=¡±search¡±
          ¡ï type=¡±tel¡±
          ¡ï type=¡±url¡±
          ¡ï type=¡±email¡±
          ¡ï type=¡±number¡±
          ¡ï Old browsers fallback to type=¡±text¡±



Sunday, April 10, 2011
Type=¡°search¡± Has Slight Benefits




Sunday, April 10, 2011
Removing Type=¡±search¡± Default Styles
           input[type=¡±search¡±] {
                 -moz-appearance: textfield;
                 -webkit-appearance: textfield;
           }


           input[type=¡±search¡±]::-webkit-search-cancel-
           button {
                 /* Remove default */
                 -webkit-appearance: none;
           }
Sunday, April 10, 2011
<input type=¡±number¡±>




Sunday, April 10, 2011
<input type=¡±url¡±>




Sunday, April 10, 2011
<input type=¡±email¡±>




Sunday, April 10, 2011
Turn On Keyboard Navigation In OS X
           System Preferences -> Keyboard -> All Controls




Sunday, April 10, 2011
Tab Index
          ¡ï Use tabindex attribute to specify tab order
          ¡ï Tab index goes from lowest to highest
          ¡ï tabindex=¡±-1¡± will be skipped
          ¡ï If you use proper HTML source order,
                   you¡¯re done!




Sunday, April 10, 2011
:focus = :hover

        ¡ï Anywhere :hover is used, add :focus as well

         a:hover,
         a:focus {
           text-decoration:underline;
           color:red;
         }




Sunday, April 10, 2011
Example of Bad Keyboard Accessibility
          ¡ï http://www.hd-live.co.uk/




Sunday, April 10, 2011
Hiding Content the Accessible Way
           /* Hides from keyboard users */
           display:none;


           /* Hidden but still accessible */
           .hidden {
               left:-999em;
               position:absolute;
               top:auto;
           }

Sunday, April 10, 2011
Revealing Hidden Content
           /* Reveal on Focus */
           .hidden:focus {
               position:static;
           }




Sunday, April 10, 2011
Skip Navigation Link
          ¡ï Lets a visitor skip straight to the content
          ¡ï Without it, keyboard visitors suffer
          ¡ï Should be the first element after <body>
          ¡ï Can be visible or hidden based on the desgin
          ¡ï If hidden, should stand out on focus




Sunday, April 10, 2011
Skip Navigation Link
           <body>
                     <a id="top" href="#content">
                     Skip to Content</a>




Sunday, April 10, 2011
Skip Navigation Link
           #top:focus {
               position:static;
               font-size:1.5em;
               background-color:#FFFFD5;
               display:block;
               font-weight:bold;
               color:#000;
               padding:2px 15px 5px;
           }

Sunday, April 10, 2011
ARIA Landmark Roles
          ¡ï Help define the structure of a document
          ¡ï Screenreaders can jump around
                   to different sections
          ¡ï Just add role attribute to an element

<div id=¡±header¡± °ù´Ç±ô±ð=¡±²ú²¹²Ô²Ô±ð°ù¡±>


Sunday, April 10, 2011
°ù´Ç±ô±ð=¡±²¹°ù³Ù¾±³¦±ô±ð¡±
          ¡ï Content that makes sense in its own right, such
                   as a complete blog post, a comment on a blog,
                   a post in a forum, and so on.




Sunday, April 10, 2011
°ù´Ç±ô±ð=¡±²ú²¹²Ô²Ô±ð°ù¡±
          ¡ï Site-orientated content, such as the title of the
                   page and the logo.
          ¡ï Header




Sunday, April 10, 2011
°ù´Ç±ô±ð=¡±³¦´Ç³¾±è±ô±ð³¾±ð²Ô³Ù²¹°ù²â¡±
          ¡ï Supporting content for the main content, but
                   meaningful in its own right when separated from
                   the main content.
          ¡ï Aside or sidebar




Sunday, April 10, 2011
°ù´Ç±ô±ð=¡±³¦´Ç²Ô³Ù±ð²Ô³Ù¾±²Ô´Ú´Ç¡±
          ¡ï Child content, such as footnotes, copyrights,
                   links to privacy statement, links to preferences,
                   and so on.
          ¡ï Footer




Sunday, April 10, 2011
°ù´Ç±ô±ð=¡±³¾²¹¾±²Ô¡±
          ¡ï Content that is directly related to or expands on
                   the central content of the document.
          ¡ï Main content container, #content




Sunday, April 10, 2011
°ù´Ç±ô±ð=¡±²Ô²¹±¹¾±²µ²¹³Ù¾±´Ç²Ô¡±
          ¡ï Content that contains the links to navigate this
                   document and/or related documents.




Sunday, April 10, 2011
°ù´Ç±ô±ð=¡±²õ±ð²¹°ù³¦³ó¡±
          ¡ï This section contains a search form to search
                   the site.




Sunday, April 10, 2011
Mobile Stylesheet
          ¡ï Smartphones handle websites OK


          ¡ï Dumb phones need a slimmed down stylesheet
          ¡ï http://perishablepress.com/press/2009/08/02/
                   the-5-minute-css-mobile-makeover/




Sunday, April 10, 2011
Mobile Stylesheet




Sunday, April 10, 2011
Accessibility
     isn¡¯t something
     you can tack on
        at the end!
Sunday, April 10, 2011
Think about it
             from the start.

Sunday, April 10, 2011
Accessibility Resources
          ¡ï http://webaim.org
          ¡ï http://diveintoaccessibility.org/
          ¡ï http://juicystudio.com/article/examining-wai-
                   aria-document-andmark-roles.php
          ¡ï http://www.w3.org/standards/webdesign/
                   accessibility
          ¡ï http://jfciii.com/

Sunday, April 10, 2011
Russell Heimlich
          ¡ï @kingkool68
          ¡ï http://www.russellheimlich.com/blog/




Sunday, April 10, 2011
The End
                         http://slidesha.re/kingkool68




Sunday, April 10, 2011

More Related Content

Accessibility Lightning Talk