+ All Categories
Home > Technology > Accessibility

Accessibility

Date post: 15-Dec-2014
Category:
Upload: ynon-perek
View: 146 times
Download: 0 times
Share this document with a friend
Description:
 
Popular Tags:
49
Web Accessibility What you need to know
Transcript
Page 1: Accessibility

Web AccessibilityWhat you need to know

Page 2: Accessibility

Accessibility Goals

• An accessible website should allow a disabled person to get the same value as a non-disabled person

Page 3: Accessibility

Accessibility Technologies

The Carroll Center for the Blind

Page 4: Accessibility

Accessibility Challenges

• Vision - Screen readers

• Motion - Special keyboards

• Hearing - audio subtitles

Page 5: Accessibility

Accessibility Law

• Every website servicing Israeli population must be accessible to an AA grade

• Existing websites must be accessible by: 25/10/2016

• New websites must be accessible upon launch

Page 6: Accessibility

Technical DetailsComplete guide: http://www.w3.org/TR/WCAG20/ !Hebrew guide: http://www.nagish.org.il/?page_id=107

Page 7: Accessibility

Agenda• Alt text for images

• Audio and Video

• Structure and flow

• Text size and colour

• Keyboard operation

• Skipping content

• Time limits

• Using standards

• Motion Control

• Text images

• Forms

• Tables

• Navigation

• Error messages

• Language definitions

• Roles

Page 8: Accessibility

Alt Text for Images

<img src="happy_elephant.png" alt="A happy elephant" />

<img src="happy_elephant.png" />

Page 9: Accessibility

Alt text for images

• All <img /> tags should have an alt attribute

• Alt text should specify content and function

• Decorations should get alt="" (an empty alt)

• Meaningful photos cannot be placed as background-image

Page 10: Accessibility

Alt text for images

• Alternative Captchas must be provided for visually impaired users

Page 11: Accessibility

Audio & Video

• Provide alternatives to voice channel (subtitles)

• Provide alternatives to visual channel (audio descriptions of important visual information)

• Alternatives must be in sync with video

• Player must be accessible

Page 12: Accessibility

Subtitles Format

• Subtitles can be provided as Open Captions or Closed Captions

• Youtube guide:http://www.youtube.com/watch?v=WkQjYHx3NY8

Page 13: Accessibility

Audio Highlights

• If you want to play long sounds (over 3 seconds):

• Provide a way for users to stop it

• Provide volume control

Page 14: Accessibility

Audio Highlights

• Don’t use audio as a sole indication

• Visual aids must also be provided

Page 15: Accessibility

Structure and Flow

• Screen readers don’t use CSS

Page 16: Accessibility

Structure and Flow

• Use semantic markup

• Use meaningful flow

Page 17: Accessibility

Semantic Markup

Usage Tag

Headers H1-H6

Lists and menus UL, LI

Paragraph P

Emphasize EM, STRONG

Citations CITE

Page 18: Accessibility

Semantic Markup

• Don’t style with tables

• Don’t link with onclick

• Don’t use inline css

Page 19: Accessibility

Text size and colour

Page 20: Accessibility

Contrast Ratio• Ranged 1-21

• Required: 4.5, except when:

• Large text can have contrast ratio 3

• Disabled UI control or decoration

• Logo

Page 21: Accessibility

Text Size

• Website should be usable if resized by up to 200%

Page 22: Accessibility

Contrast Checking Tool

• http://www.snook.ca/technical/colour_contrast/colour.html

Page 23: Accessibility

Keyboard Navigation

Page 24: Accessibility

Keyboard

• All content and functionality must be accessible using keyboard only

• Keyboard focus should never be trapped

Page 25: Accessibility

Keyboard

• Keyboard focus order (tab order) should preserve meaning

• Visual indication for keyboard focus is required

• Keyboard focus change should not change context

Page 26: Accessibility

Skipping To Content

• Add a link to main content at the head of every page

• Add links to each content area (navigation links)

• Start each content block with a header

• Organize links in lists

Page 27: Accessibility

Skipping To Content• Recommended access keys:

S - Skip navigation

1 - Home page

2 - What's new

3 - Site map

4 - Search

5 - Frequently Asked Questions (FAQ)

6 - Help

7 - Complaints procedure

8 - Terms and conditions

9 - Feedback form

0 - Access key details

Page 28: Accessibility

Time Based Actions

Page 29: Accessibility

What Is Time Based Actions

• Every action that happens automatically after a given time frame

• Examples:

• Content refresh

• Page transitions

Page 30: Accessibility

Guidelines

• User should be able to block time based events before they occur

• User should be able to change time limits before they occur

• User should be able to take an “extension”, when facing a time limited action

Page 31: Accessibility

Examples

• Pause button for auto scroll texts

• Control time frames in user’s preferences

Page 32: Accessibility

Movement Control

• User can control all moving or blinking elements on screen

• Same applies for self-updating information

Page 33: Accessibility

Textual Images

• Don’t use text-in-images unless

• User can visually customise the text

• Image is inseparable from the text (Example: logos)

Page 34: Accessibility

Language Guidelines

• Use lang attribute on HTML

<html lang="en">

<html lang="he">

Page 35: Accessibility

Language Guidelines

• Specify language change inside the document, if changing from english to another language

<p>Accessibility for all “ <span lang="he" dir="rtl">נגישות לכל, W3C</span> " in Hebrew.</p>

Page 36: Accessibility

Forms

Page 37: Accessibility

Link form element to its description

<label for="firstname">First name:</label> <input type="text" name="firstname" id="firstname" />

Page 38: Accessibility

Use title when label is not appropriate

<fieldset> <legend>Phone number</legend> <input id="areaCode" name="areaCode" title="Area Code" type="text" size="3" value="" > <input id="exchange" name="exchange" title="First three digits of phone number" type="text" size="3" value="" > </fieldset>

Page 39: Accessibility

Required Fields

• Use clear textual indications for required fields

• Explain in the beginning of the form what indicates a required field

• fields marked with(*) are required

Page 40: Accessibility

Grouping Fields

• Group fields in a fieldset when you have > 10 form fields

<fieldset> <legend>address</legend> <label for="city">City</label> <input id="city" name="city" type="text" /> <label for="street">Street</label> <input id="street" name="street" type="text" /> </fieldset>

Page 41: Accessibility

Error Messages

• Group error messages in form beginning, each line indicates a single error

• Each error line links to the field it relates to

• When possible, suggest a correction

Page 42: Accessibility

Tables 50% $200

70% $215

Page 43: Accessibility

Use Caption to Describe the Table

<table> <caption>Table 1: Company data</caption>

Page 44: Accessibility

Use th for table headers<table> <caption>Table 1: Company data</caption> <tr> <th>Name</th> <th>Email</th> </tr> <tr> <td>Bob</td> <td>[email protected]</td> </tr> </table>

Page 45: Accessibility

Use cell headers for complex tables

<tr> <th id="acme">ACME Inc</th> <td headers="acme employees men">700</td> <td headers="acme employees women">300</td> <td headers="acme founded">1947</td> </tr>

Page 46: Accessibility

Writing By Standards

• Start and end tag to each element

• Elements are nested by spec

• No duplicate attributes

• Unique IDs

Page 47: Accessibility

Q & A

Page 48: Accessibility

Thanks For Listening

• Ynon Perek

[email protected]

• http://ynonperek.com

Page 49: Accessibility

Photos From

• http://placeit.net

• http://123rf.com


Recommended