HTML5 and friends

51
HTML5 and friends Bobby van der Sluis August 20, 2010

description

Presentation I gave at Blast Radius' Biertje o'clock

Transcript of HTML5 and friends

Page 1: HTML5 and friends

HTML5and friends

Bobby van der Sluis August 20, 2010

Page 2: HTML5 and friends

Take AWAYs

★ what is HTML5?★ Why is it hip?★ What will it change?

Page 3: HTML5 and friends

THE ROAD TO HTML5

THE ROAD TO HTML5

Page 4: HTML5 and friends

W3C

for over a decade tried to

create an XML-based web

Page 5: HTML5 and friends

BUT FAILED MISERABLY

★ Internet explorer: 95%★ 1 syntax error breaks a page★ overly complex★ new stuff not backwards

compatible

Page 6: HTML5 and friends

In the meantime...

Page 7: HTML5 and friends
Page 8: HTML5 and friends

WHATWG

★ mozilla + opera + apple★ evolve web browsers★ foundation of html5

Page 9: HTML5 and friends

w3c in 2009

Xhtml is dead,

long live html5!

Page 10: HTML5 and friends

the new pragmatism

★ browser makers decide★ backwards compatibility★ paving the cowpaths★ evolve together

Page 11: HTML5 and friends
Page 12: HTML5 and friends

THE PROCESS WORKS!

Page 13: HTML5 and friends

The standards-based web is evolving faster than ever

Page 14: HTML5 and friends
Page 15: HTML5 and friends

HTML5 -the spec

★ used to be huge★ lots taken out★ still a work in progress★ getting in good shape

Page 16: HTML5 and friends

What’s in it?

★ lots of developer goodies★ adds semantics

- e.g. header, footer, nav, article, aside

★ everything is clickable, draggable or editable

Page 17: HTML5 and friends

What’s in it?

★ forms on steroids- e.g. date picker, slider, spinner, color picker, email field,

telephone field, custom fields -> less JavaScript

★ browser history mgt.★ undo mgt.

Page 18: HTML5 and friends

Heavy hitters

★ audio and video★ bitmap canvas★ offline browsing

Page 19: HTML5 and friends

HTML5 -the Buzzword

includes many related

technologies

Page 20: HTML5 and friends

The future web stack

★ html5★ css3★ svg★ new dom apis★ ecmascript 5★ vendor specific additions

Page 21: HTML5 and friends

CSS3

★ 50 modules★ prioritized★ mostly a work

in progress

Page 22: HTML5 and friends

coming soon

★ colors with alpha★ opacity★ backgrounds & borders

- e.g. rounded corners, scalable bg, multiple bg.

★ web fonts★ media queries

- conditional style rules, e.g. based on device width or screen orientation

Page 23: HTML5 and friends

Pure gold

CSs animations, transitions,

2d & 3d transforms

to enable Flash-like

animations

Page 24: HTML5 and friends

SVG

★ a relatively old spec

★ vector graphics

★ embeddable in html5 & css3

Page 25: HTML5 and friends

NEW DOM API’s

★ geolocation- uses gps, cell tower triangulation, nearby wifi access

points, IP geolocation -> location aware browsing

★ client-side storage + db- bye, bye cookies

★ cross-document messaging★ Cross-domain ajax +

resource sharing

Page 26: HTML5 and friends

NEW DOM API’s

★ workers- multi-threaded javascript

★ sockets- 2-way communication

★ web notifications + server-sent events

- incl. push notifications

Page 27: HTML5 and friends

NEW DOM API’s

★ microdata- alternative for rdfa and microformats

★ WAI-ARIA- enabling accessibility for web applications

★ widgets- packaging a web app to run as a native app

Page 28: HTML5 and friends

NEW DOM API’s

★ FILE api★ contacts api★ media capture★ mime type & protocol

handler registration

Page 29: HTML5 and friends

ECMAScript 5

★ defines javascript 1.9★ new developer goodies

- e.g. native JSON

★ security & consolidation

Page 30: HTML5 and friends

OTHER developments

★ webgl- hardware accelerated 3d graphics (3d context for canvas)

★ touch & gestures★ fullscreen★ next-gen javascript engines★ built-in developer tools★ hardware acceleration

Page 31: HTML5 and friends

Conclusions

Page 32: HTML5 and friends

web Development 2.0

The web technologies of

tomorrow are being defined

today

Page 33: HTML5 and friends

The rise of a powerful open web platform

★ better performing user interfaces

★ decreased need for plug-ins★ able to compete with

desktop applications

Page 34: HTML5 and friends

Nice, but when will it arrive?

Page 35: HTML5 and friends
Page 36: HTML5 and friends
Page 37: HTML5 and friends
Page 38: HTML5 and friends

Browsers

★ Firefox, chrome, safari, opera have short browser update cycles

★ what will ship with internet explorer 9?

★ when will internet explorer 6, 7 & 8 be phased out?

Page 39: HTML5 and friends

How does this affect me today?

Page 40: HTML5 and friends

FOR Developers

★ start using the html5 doctype and syntax today

- It is already supported cross-browser today (hurray backwards compatibility!)

- leaner, better readable markup compared to xhtml

- ready for the future, e.g. just drop in the <video> element at any time you feel comfortable with

★ do not overdo it- only use new html5 elements when cross-browser supported

Page 41: HTML5 and friends

Get acquainted:

books & demos

Page 42: HTML5 and friends
Page 43: HTML5 and friends
Page 44: HTML5 and friends
Page 45: HTML5 and friends
Page 46: HTML5 and friends
Page 47: HTML5 and friends
Page 48: HTML5 and friends
Page 49: HTML5 and friends
Page 50: HTML5 and friends
Page 51: HTML5 and friends