Web Standards - tomorrow's web today
Henny Swan, Opera Software

Henny Swan, Opera Software
"The web is too vital a platform— for commerce, for business, for society— to be in the hands of any one vendor."Bruce Lawson, Future or Web Design
Tomorrow's web standards today:
The Web is the platform, standards the framework. Standards help:
Write once, work everywhere
Non-proprietary, cross device and cross platform technologies designed to work everywhere: HTML, CSS, SMIL, DOM, ECMAscript, WAI-ARIA, Widgets...
Written by standards bodies such as the World Wide Web Consortium (W3C), Ecma International, International Organization for Standardization (ISO)
Often the elephant in the room
Disability covers visual, hearing, mobility, cognitive impairments - arthritis, cancer, multiple sclerosis, heart disease, depression, Downs Syndrome and diabetes.
"By 2020 58% of people over the age of 50 will have a long term health condition." - Disability Rights Commission
That's you and me; no-one plans on dying young right?
From the World Wide Web Consortium (W3C) Web Accessibility Initiative (WAI)
Intended to work together with HTML5 which provides interaction for web apps
Role - I am a slider
State - Feeling pretty good actually
<input type="image"
src="thumb.gif"
alt="How are you doing?"
role="slider"
aria-valuemin="terrible"
aria-valuemax="excellent"
aria-valuenow="good"
...aria-labelledby="leffective">
Notifies the screen reader user of updates: polite, assertive, RUDE!
Defines areas of a web page that can be identified by screen readers
<div role="banner">...</div>
<div role="navigation">...</div>
<div role="main">...</div>
Editor Ian Hickson describes the purpose of HTML 5 as:
HTML4 is limited and did not support web applications.
Will be complete 2022 but you can use new features now as they become supported by browsers.
Too many cooks...
New structural elements: header, nav, article, aside, section and footer
From this... to this...
Support: Not yet officially supported but can be used with CSS display:block.
Support: Opera 9.3 upwards, partial support in Firefox 3.
<object width="425" height="344">
<param name="movie" value="http://xx"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/xxx"
<embed src="http://www.youtube.com/xxx"
allowfullscreen="true" width="425" height="344"></embed>
</object>
Super slinky new way:
<video src="video.ogv"
controls
autoplay
poster="poster.jpg"
width="320" height="240">
<a href="video.ogv">Download movie</a>
</video>
Support: Opera 9.6 video build, Safari 3.1 and Firefox 3.1
(Demonstrations need an Opera experimental build, or Firefox 3.5)
Support: Opera, Safari, Firefox and Chrome.
<g id="m">
<line stroke-width="4" y2="95" stroke="red" opacity=".9" />
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="60min" by="360" />
<circle r="6" fill="red"/>
</g>
Canvas is graphics based and has no DOM, hard to make accessible and fallback on complex canvas is insufficient.
SVG is text and more accessible (once screen readers catch up).
Canvas for bling and eye candy, SVG for content
tel:
protocol<a href="tel:12345678">Call me at 12345678</a>
Mobiles differ a lot in capabilities:
3 approaches to mobile support:
CSS 2.1 targets rendering with Media types: Print, screen, aural, braille, handheld, projection, tty, tv, and all.
Media queries extend media types: width, height, device-width, device-height, orientation, aspect-ratio, device-aspect-ratio, color, color-index, monochrome, resolution, scan, and grid.
Benefit of media queries:
Support: Opera Mobile, Opera Mini 4, Opera on the Nintendo Wii, iPhone, Bolt, Iris and the Nokia s60 browser.
@media screen and (max-height: 280px), screen and (max-device-height: 280px) {
body, html {
height: 280px;
}
.view {
height: 222px;
}
One source of content, multiple delivery mechanisms: detect, adapt deliver
Media queries demo (resize the window to see content reflow)
Optimising SVG icons with media queries by Andreas Bovens
Web standards goodness comes in small packages
See Opera widgets for downloadable widgets, resources, SDK, and Opera Dragonfly
Demo: Pocket Widget Workshop (needs Opera running or Opera 10.10 downloaded)
Opera Dragonfly available in Opera 9.x
Henny Swan, Opera Software