how html5 and wai-aria can improve virtual space of universities

77
How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities Radek PAVLÍČEK, Teiresias Centre, Masaryk

Upload: radek-pavlicek

Post on 12-May-2015

5.837 views

Category:

Documents


5 download

DESCRIPTION

Slides with comments from my workshop presentation at Universal Learning Design Conference 2013. My workshop was about accessibility, HTML5 and WAI-ARIA and their benefit to users with special needs. Some examples included ;-)

TRANSCRIPT

Page 1: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Radek PAVLÍČEK, Teiresias Centre, Masaryk University, Brno

Page 2: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

What is accessibility good for?

Page 3: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Availability – user must be able to get

on the web.

Page 4: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Controlability – user must be able to

operate the web.

Page 5: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Comprehensibility – user must understand

the web.

Page 6: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Orientation – user must be able to find the way

through the web.

Page 7: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Time – user must be able to fullfil his

or her task in reasonable time.

Page 8: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Who is accessibility good for?

Page 9: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Accessibility is often perceived as a matter of people with special needs only.

Page 10: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Accessibility brings benefits also to the elderly, geeks, children and very clever men.

Page 11: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Remember

Accessible web is beneficial to all users, not only to users with

impairement.

Page 12: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

How can HTML5 with WAI-ARIA help to improve web accessibility? Which issues could be solved by them?

Page 13: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

History

Page 14: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Text

Link

Picture

Simple form

Web pages were very simple and static in the past. Also assistive technologies were not so powerful as nowadays.

Page 15: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Present

Page 16: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

But today, web is multimedia and interactive space and also assistive technologies are more powerfull.

Page 17: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Accessibilityisn‘t

black or whiteonly

Page 18: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

In the past, there were two states only: 1 or 0. Is accessible, or isn‘t.

Page 19: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

But now, accessibility is perceived as grey gradient, because very often it is not easy to say whether something is or is not accessible. This much better describes reality.

Page 20: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

What is HTML5?

Page 21: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

SemanticsMarkupJS API

Offline applicationsDrawing

etc.

Page 22: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

How AT make web accessible to

their users

Page 23: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

User with assistive

technology

A11y APIoff screen

modelDOM

Page 24: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

What is WAI-ARIA?

Page 25: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

“WAI-ARIA is a specification that provides a means ofdescribing roles, states, and properties for customwidgets so that they are recognisable and usable byassistive technology users.”

Gez Lemon, Introduction to WAI-ARIA

Page 26: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

WAI-ARIA was created to bridge the gap between rich applications and disabled users by introducing additional metadata.

Page 27: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

WAI ARIA screenshot

Page 28: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

WAI-ARIA is a part of HTML5.

Page 29: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

WAI ARIA is simple markup

<div role=„navigation“>

Page 30: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Why WAI-ARIA?

Page 31: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Weaknesses in HTML

Dynamic content updates

Complex web applications

Page 32: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

WAI-ARIA does not fix all accessibility issues

Page 33: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

WAI-ARIA support

Page 34: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

www.html5accessibility.com

HTML5 Support

Page 35: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

What doesWAI-ARIA bring?

Page 36: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Keyboard navigationRoles and States„Live Regions“

Landmarks

and much more

Page 37: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Keyboard Navigation

Page 38: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

HTML 4 focusable elements were only:

a, area, button, input, object, select a textarea.

Page 39: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

WAI-ARIA

A possibility to make „focusable“ each element.

Page 40: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

How to test it

Page 41: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities
Page 42: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Live Regions

Page 43: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

http://youtu.be/jFB_zJE_pjY

Screen Reader & Javascript - AJAX updates with WAI-ARIA Live Regions - video

Page 44: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Forms (Roles and States)

Page 45: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

New atributes for <input>• autocomplete• autofocus• form• formaction• formenctype• Formmethod• formnovalidate• formtarget

• height and width• list• min and max• multiple• pattern (regexp)• placeholder• required• step

Page 46: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

<label>Color: <select name=color required aria-required="true"> <option value="">Choose color <option>Red<option>Green<option>Blue</select></label>

ARIA and HTML5

Page 47: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

<label>Color: <select name=color required><option value="">Choose color<option>Red<option>Green<option>Blue</select></label>

HTML5

Page 48: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Regions,Landmarks,Structure

Page 49: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Headings

Page 50: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities
Page 51: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities
Page 52: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities
Page 53: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities
Page 54: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities
Page 55: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Landmarks

Page 56: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Demonstration of landmarks

Page 57: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

<div id="menu"><h5>Menu</h5><ul>…</div>

„Standard“ solution

Page 58: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

<div id=„menu“ role=„navigation"><h5>Menu</h5><ul>…</div>

WAI-ARIA improvement

Page 59: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

<nav role="navigation"><h5>Menu</h5><ul>…</nav>

WAI-ARIA and HTML5

Page 60: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

<nav><ul>…</nav>

HTML5 only

Page 61: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

<div role=„navigation„ aria-label=„Main menu“><h5>Main menu</h5><ul> … </div>

<div role=„navigation„ aria-label=„Section Menu“><h5>Section menu</h5><ul>… </div>

Distinguishing of menus

Page 62: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

http://youtu.be/IhWMou12_Vk

How ARIA landmark roles help screen reader users - video

Page 63: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

You can use Web Developer Toolbar…

Page 64: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

…or Landmarks extension to check the presence of roles.

Page 65: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

You can only make your content more accessible

by using ARIA

Page 66: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

It works

Page 67: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

When should not I use ARIA?

Page 68: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

When native HTML will get the job done

Page 69: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Text alternatives of pictures

Page 70: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

<img src=„picture.jpg“ alt=„Text alternative.“>

Page 71: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

figure and figcaption

<figure><img src=”picture.jpg”><figcaption>Meaningful description.</figcaption></figure>

Page 72: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

img and aria-describedby

<img src=”pictures.jpg” aria-describedby=”desc1”>…<p id=”desc1”>Meaningful description.</p>

Page 73: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

versatile solution

<figure> <img src=”picture.jpg” alt=”Brief description.” aria-describedby=”desc1”><figcaption>Image title</figcaption></figure>…<p id=”desc1”>More detailed description.</p>

Page 74: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Where to get more information?

Page 75: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Pro HTML5 Accessibility

Page 76: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Contact info

[email protected]@radlicek

Page 77: How HTML5 and WAI-ARIA Can Improve Virtual Space of Universities

Photo credits• http://www.flickr.com/photos/nationaalarchief/4025536029/• http://www.flickr.com/photos/cornelluniversitylibrary/3678984206/• http://www.flickr.com/photos/30795657@N00/434222764/• http://www.flickr.com/photos/30072283@N00/4782154855/• http://www.flickr.com/photos/_sk/4042566406/sizes/o/in/photostream/• http://www.flickr.com/photos/51035702460@N01/19245594/• http://www.flickr.com/photos/jasonpearce/136206624/sizes/l/in/photostream/• http://www.pooh.cz/upload/img/1000/trattoria-laura-facebook-faux-pas-2.png• http://lorenc.info/3MA381/tabulatory.htm• http://www.bibri.net/wp-content/uploads/2009/11/Ubuntu-910-obsah1.jpg• http://4.bp.blogspot.com/__1B7eTIn3jM/SoMylQ_RqWI/AAAAAAAAAAw/F8u_jtyp3IA/s400/Learn-Hiragana.jpg• http://www.mariezabranska.com/pict/textil/16.jpg• http://www.stanford.edu/group/accessibility/cgi-bin/presentations/html5_a11y/images/HTML5_braille.png • http://pulllava360.saturn.netdna-cdn.com/wp-content/uploads/2011/08/html5_code.jpg • http://www.flickr.com/photos/national_library_of_australia_commons/6173531979/ • http://www.flickr.com/photos/bibliothequedetoulouse/7942246450/ • http://www.ixibo.com/wp-content/uploads/2010/12/web-browsers.jpg • http://blogs.telerik.com//Libraries/Carl_Bergenhem_s_Library/waiaria_001.sflb • http://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Nasa_earth.jpg/800px-Nasa_earth.jpg• http://tapetky.kx.cz/files/hokej3.jpg