web accessibility gone wild

50
Web Accessibility Gone Wild Jared Smith http://webaim.org Now even MORE wilder!

Upload: jared-smith

Post on 15-May-2015

1.540 views

Category:

Technology


1 download

DESCRIPTION

Mistakes, misconceptions, over-indulgences, minutia, and generally silly aspects of modern web accessibility. Presented by Jared Smith at Accessing Higher Ground Conference 2009.

TRANSCRIPT

Page 1: Web Accessibility Gone Wild

Web Access ib i l i tyGone Wi ld

Jared Smithhttp://webaim.org

Now even MORE

wi 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.

• I’ll attempt to be an equal opportunity offender

• There’s little logic to the sequencing of topics

Page 4: Web Accessibility Gone Wild

WebAIM surveys of screen reader user preferences

There is no typical user

Page 5: Web Accessibility Gone Wild

Accessibility > Compliance

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

Use guidelines as tools to achieve accessibility.

Your site can be fully compliant, yet totally inaccessible.

Page 6: Web Accessibility Gone Wild

Focusing on True Accessibility and Not Merely

Compliance

Page 7: Web Accessibility Gone Wild

Knowing That Accessibility is a Continuum

Page 8: Web Accessibility Gone Wild

Alt text should present CONTENT and FUNCTION

Very rarely a description

Page 9: Web Accessibility Gone Wild

• alt=”bullet”

Page 10: Web Accessibility Gone Wild

alt=”image of my cat”

Page 11: Web Accessibility Gone Wild

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

Page 12: Web Accessibility Gone Wild

alt=”Photo of the White House”

Page 13: Web Accessibility Gone Wild

alt=”Photo of the White House”

Is “Photo of...” necessary? It doesn’t really matter.

Page 14: Web Accessibility Gone Wild

alt=”smiling lady”???

Page 15: Web Accessibility Gone Wild

S u r v e y s ay s . . .

“ P h o t o o f s m i l i n g l a d y ”

Page 16: Web Accessibility Gone Wild

alt=”smiling lady”

Page 17: Web Accessibility Gone Wild

Images that are the only thing within a link MUST have alt text

Image buttons and hot spots too

Page 18: Web Accessibility Gone Wild

Logos that link to the home pagealt=”WebAIM”

alt=”WebAIM home”alt=”WebAIM logo”

alt=”WebAIM logo with link to home page”

There’s no real consensus

Page 19: Web Accessibility Gone Wild
Page 20: Web Accessibility Gone Wild
Page 21: Web Accessibility Gone Wild

Overly long alt text...

Using real text instead of images(when it makes sense to)...

Page 22: Web Accessibility Gone Wild

Providing a long description for EVERY complex image(focus on CONTENT and FUNCTION)

Avoiding redundant alternative text

Page 23: Web Accessibility Gone Wild

longdesc=”1/2 of the content of a Beatles song is ‘Yeah’, 1/6th is ‘She’, 1/6th is

‘Loves’, and 1/6th is ‘You’”

SheLoves

You

Yeah

Contents of a Beatles Song

Page 24: Web Accessibility Gone Wild

Putting anything other than a URL in longdesc...

Page 25: Web Accessibility Gone Wild

The most accessible site on Earth...

Page 26: Web Accessibility Gone Wild

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

Hey, I’m the content!!!

Page 27: Web Accessibility Gone Wild

Can you have too much accessibility?

Page 28: Web Accessibility Gone Wild

Accessibility preferences are for sissies

Page 29: Web Accessibility Gone Wild

Accessibility implemented part way or incorrectly can be worse than no accessibility at all

Page 30: Web Accessibility Gone Wild

Which provides better accessibility?

Page 31: Web Accessibility Gone Wild

Don’t make disability relevant

Page 32: Web Accessibility Gone Wild

... but understand that the experiences of those with disabilities will be different

Page 33: Web Accessibility Gone Wild

Building one version of a web site that is fully accessible

Page 34: Web Accessibility Gone Wild

Accesskey and Tabindex

(unless you're sure you know what you're doing)

Learn the power of tabindex=”0” and tabindex=”-1”

Page 35: Web Accessibility Gone Wild

Tabindex• tabindex=”1+”

Specifies exact tab order. Ensure tab order 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 36: 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 37: Web Accessibility Gone Wild

Skip to content

• One link is typically sufficient

• Are headings “a mechanism”?

• Think beyond screen reader access

• Use ARIA landmark roles

Page 38: Web Accessibility Gone Wild

Removing the focus indicators from links

Navigate through CNN.com to see this in action

a {outline:0;}

Page 39: Web Accessibility Gone Wild

Enhancing focus indicatorsa:focus, a:hover {outline:1px;background-color:#ff0;text-decoration:underline;}

Non-underlined links must become underlined on hover and focus

Page 40: Web Accessibility Gone Wild

Bullet-proof web design...

Page 41: Web Accessibility Gone Wild

HeadingsProperly structured, one <h1>, never empty

... and other semantic structure.

Page 42: 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 43: Web Accessibility Gone Wild

Using title attribute properly...

Page 44: Web Accessibility Gone Wild

Cognitive disabilities

(not much happening here)

Page 45: Web Accessibility Gone Wild
Page 46: Web Accessibility Gone Wild
Page 47: Web Accessibility Gone Wild

Cognitive load vs Functionality

Page 48: Web Accessibility Gone Wild

Other• Site maps aren’t typically used

• Provide accurate, descriptive page titles

• Don’t provide summary for layout tables

• Don’t stress over screen reader pronunciation

• Expand first instance of acronyms and abbreviations. You don’t have to use <acronym>/<abbr> on all instances. Don’t worry if well known terms.

• Use fieldset for grouped radio buttons and checkboxes

• Layout tables don’t (typically) affect accessibility

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

Questions?

Jared SmithWebAIM.org

twitter: @jared_w_smithAHG hashtag: #ahg09