web accessibility gone wild

64
Web Accessibility Gone Wild Jared Smith & Jon Whiting http://webaim.org Now even wilder!

Upload: jared-smith

Post on 20-Dec-2014

4.397 views

Category:

Technology


2 download

DESCRIPTION

Web Accessibility Gone Wild explores mistakes, misconceptions, over-indulgences, minutia, and generally silly aspects of modern web accessibility

TRANSCRIPT

Page 1: Web Accessibility Gone Wild

Web Ac cess i b i l i tyG o ne Wi ld

Jared Smith & Jon Whitinghttp://webaim.org

Now even w i lder !

Page 2: Web Accessibility Gone Wild

Gone wild?

Mistakes, misconceptions, over-indulgences, minutia, and generally

silly aspects of modern web accessibility

... or “How to FAIL at web accessibility”

Page 3: Web Accessibility Gone Wild

Disclaimers

• There will be controversy and you may disagree.

• We’ll attempt to be equal opportunity offenders

• There’s little logic to the sequencing of topics

Page 4: Web Accessibility Gone Wild

Survey of screen reader user preferences

http://webaim.org/projects/screenreadersurvey/

Page 5: Web Accessibility Gone Wild

Alt text blunders

Page 6: Web Accessibility Gone Wild

• alt=”bullet”

Page 7: Web Accessibility Gone Wild

alt=”bullet”

Page 8: Web Accessibility Gone Wild

alt=”image of my cat”

Page 9: Web Accessibility Gone Wild

Adding “image of...”, “graphic of...”, etc. to alt text

Page 10: Web Accessibility Gone Wild

alt=”photo of the White House”

Page 11: Web Accessibility Gone Wild

alt=”photo of the White House”

Page 12: Web Accessibility Gone Wild

alt=”smiling lady”???

Page 13: Web Accessibility Gone Wild

alt=”smiling lady”

Page 14: Web Accessibility Gone Wild

alt=”Our business promises the best service you will find on the planet. Our team is professionally trained to offer excellent customer service throughout the contract negotiation process. Customer satisfaction is our top priority and is guaranteed.”

Page 15: Web Accessibility Gone Wild

“Describing” images - particularly decorative images used to convey mood or feeling.

Page 16: Web Accessibility Gone Wild

Apple iPhone

Images that have a function MUST have alt text

alt=”iPhone web site”

Page 17: Web Accessibility Gone Wild

alt=”iPhone web site”Images that have a function MUST have alt text

Page 18: Web Accessibility Gone Wild

<a href=”http://apple.com/iphone/”><img src=”iphone.jpg” alt=””><br>

Apple iPhone</a>

Avoiding redundant text...

Page 19: Web Accessibility Gone Wild

Logos that link to the home page

Page 20: Web Accessibility Gone Wild

Logos that link to the home page

There’s no real consensus

Page 21: Web Accessibility Gone Wild
Page 22: Web Accessibility Gone Wild
Page 23: Web Accessibility Gone Wild

Overly long alt text...

Using real text instead of images (when possible)...

Page 24: Web Accessibility Gone Wild

alt=”Sales steadily increased from $5 million to $16 million

between 1996 and 2004”

Page 25: Web Accessibility Gone Wild

Focusing on equivalent CONTENT rather than describing an image

Page 26: Web Accessibility Gone Wild

longdesc=”80 percent of this chart resembles Pac-man. 20

percent does not.”

Page 27: Web Accessibility Gone Wild

Putting anything other than a URL in longdesc...

Page 28: Web Accessibility Gone Wild

The most accessible site on Earth...

Page 29: Web Accessibility Gone Wild

•Home•Products•Support•Sales•Forum•Contact Us

Hey, I’m the content!!!

Page 30: Web Accessibility Gone Wild

Can you have too much accessibility?

Page 31: Web Accessibility Gone Wild

FAIL!

Page 32: Web Accessibility Gone Wild

Which provides better accessibility?

Page 33: Web Accessibility Gone Wild

FAIL!

Page 34: Web Accessibility Gone Wild

FAIL!

Page 35: Web Accessibility Gone Wild

FAIL!

Page 36: Web Accessibility Gone Wild

Text-only alternatives

• Not an excuse for a site that could otherwise be made accessible

• Only benefits a small number of users

• Native accessibility = text alternative

• Rarely used

Page 37: Web Accessibility Gone Wild

Building one version of a web site that is fully accessible...

Page 38: Web Accessibility Gone Wild

Using text only versions of inaccessible web sites...

Page 39: Web Accessibility Gone Wild

We don’t need no stinkin’ badges

Page 40: Web Accessibility Gone Wild

Accesskey and Tabindex

Page 41: Web Accessibility Gone Wild

Tabindex

• tabindex=”1+”Specifies exact tab order. Ensure tabindex is complete, logical, and intuitive.

• tabindex=”0”Place item in the default tab order

• tabindex=”-1”Do not place in tab order, but allow the element to programmatically receive focus

Page 42: Web Accessibility Gone Wild

Visually hiding content

• display:none AND visibility:hidden hides from everyone

• Position off-screen left with CSS for screen readers

• Use judiciously

Page 43: Web Accessibility Gone Wild

Skip to content

• Think beyond “screen reader access”

• One link is typically sufficient

• Are headings “a mechanism”?

• Use ARIA landmark roles

Page 44: Web Accessibility Gone Wild

Navigation

Navigate through CNN.com using only the keyboard

Page 45: Web Accessibility Gone Wild

Navigation

• Ensure page is keyboard accessible

• Do not remove outline

• Provide clear focus indicators

Page 46: Web Accessibility Gone Wild

Text resizing

Increase the font size (not zoom) at MLB.com

Page 47: Web Accessibility Gone Wild

Bullet-proof web design...

Page 48: Web Accessibility Gone Wild

Fixing screen readers

alt=”sea sun”

vs.alt=”CSUN”

Page 49: Web Accessibility Gone Wild
Page 50: Web Accessibility Gone Wild

Until user agents...

They do

Page 51: Web Accessibility Gone Wild

You don’t need to provide...

• default text in form fields

• printable character between links

• redundant text links for client-side image maps

Page 52: Web Accessibility Gone Wild

Acronym and Abbreviation

• Expand in text at first instance OR use <acronym> or <abbr>.

• It’s not necessary to expand all instances.

• It’s not necessary to expand commonly known acronyms and abbreviations (for our web site - HTML, CSS, etc.)

Page 53: Web Accessibility Gone Wild

Proper use of Acronym and Abbreviation

Page 54: Web Accessibility Gone Wild

HeadingsProperly structured, one <h1>, never empty

... and other semantic structure.

Page 55: Web Accessibility Gone Wild

Title attribute

• Advisory information only

• Ignored by screen readers, except...

• form elements missing labels

• <frame title=”navigation”>

• <acronym>/<abbr>...usually.

Page 56: Web Accessibility Gone Wild

Using title attribute properly...

Page 57: Web Accessibility Gone Wild

Accessibility > Compliance

The mythical “accessible” web site doesn’t exist!

“Is your site WCAG 2.0 AAA compliant???”

Page 58: Web Accessibility Gone Wild

Cognitive disabilities

(not much happening here)

Page 59: Web Accessibility Gone Wild
Page 60: Web Accessibility Gone Wild
Page 61: Web Accessibility Gone Wild

Cognitive load vs Functionality

Page 62: Web Accessibility Gone Wild
Page 63: Web Accessibility Gone Wild

Other• Accessibility statements. Who cares?

• Site maps aren’t typically used

• Design for optimal line length (Jello layouts)

• Provide accurate, descriptive page titles

• You don’t HAVE to check in screen readers

• Don’t provide summary for layout tables

• Use fieldset for grouped radio buttons and checkboxes

• Layout tables don’t (typically) affect accessibility

Page 64: Web Accessibility Gone Wild

<plug shameless=”true”> read the articles check the blog join the list subscribe to newsletter get our training</plug>

Questions?