HTML5 battles still to be won

Post on 11-Sep-2014

20 views 0 download

Tags:

description

HTML5 is here to stay. It is time to re-think some of the best practices we defined in the last years. This keynote of the open web camp in stanford, california describes what we should consider.

Transcript of HTML5 battles still to be won

HTML5 - Battles still to be won!

Christian Heilmann, Mozilla, Open Web Camp 3, July 2011

Excitement.

http://www.20thingsilearned.com/

http://wheelsofsteel.net

http://wheelsofsteel.net

Misnomer.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>HTML - c'est moi!</title> <link rel="stylesheet" type="text/css" href="styles.css"> <script type="text/javascript" src="magic.js"> </script></head><body> <h1>Heading! Everybody duck!</h1> <p>I am content, hear me roar!</p> <p class="footer">By me!</p></body></html>

<!DOCTYPE html> <html lang="en"><head> <meta charset="utf-8"> <title>HTML5, c'est moi, ou HTML...</title> <link rel="stylesheet" href="styles.css"> <script src="magic.js"></script></head><body> <h1>Heading! Everybody duck!</h1> <p>I am content, hear me roar!</p> <p class="footer">By me!</p></body></html>

<!DOCTYPE html> <html lang="en"><head> <title>HTML5, c'est moi, ou HTML...</title> <link rel="stylesheet" href="styles.css"> <script src="magic.js"></script></head><body> <header><h1>Heading! Everybody duck!</h1></header> <section> <p>I am content, hear me roar!</p> </section> <footer><p>By me!</p></footer></body></html>

<section> <nav> <article>

<aside> <hgroup>

<header> <footer> <time>

<mark> <details> <figure>

<figcaption> ...

<video src="interview.ogv" controls> <a href="interview.ogv">Download video</a></video>

<canvas></canvas>

Markup

Stuff for Browser/Parser developers

HTML(5)

JavaScript APIsgeneral WTF

New Tech!

http://animatable.com

Screencast of Nikebetterworld

http://nikebetterworld.com/

NIHhttp://en.wikipedia.org/wiki/Not_Invented_Herehttp://www.flickr.com/photos/tillwe/1526490488/

http://www.flickr.com/photos/london/51301816/

http://folding.stanford.edu/

http://folding.stanford.edu/

HTML5 = Using the capabilities of the

technology we have instead of limiting ourselves to the lowest common denominator.

Adaptation

Separation of concerns.

In the old days...

Behaviour

Presentation

Structure

HTM

L

DHTML days (1)

Behaviour

Presentation

Structure

HTM

L

JSJS

DHTML days (2)

Behaviour

Presentation

Structure

JSCSS

HTM

L

The gospel (according to Zeldman)

Behaviour

Presentation

Structure

JS

CSS

HTM

L

The now...Behaviour

Presentation

Structure

JSCSS

HTM

L

The challenge:

Applying best practices of the past without sounding like grumpy old people.

The solution:

Following the spirit of best practices and pointing out their benefits instead of harping on about them.

Agnosticism

http://www.flickr.com/photos/amulligan/270191276/

Causes tofight for.

http://wufoo.com/html5/

Learn JavaScript!

Keep the web OS-independent

CMD+U(CTRL+U)

Things to applaud:

Sane progressiveenhancement.

http://benthebodyguard.com

http://animatable.com

http://animatable.com

What about old infrastructure?

http://html5boilerplate.com/

http://www.modernizr.com/

Danger.

Support means you to test with it.Don’t support if you can’t ensure a good experience.Don’t waste testing time on the undead.

Check this out!

http://c64.superdefault.com/

SVG

http://mbostock.github.com/d3/

http://highcharts.com

Local Storage

http://www.flickr.com/photos/blude/2665906010/

Offline

http://www.flickr.com/photos/spentrails/3245564940

CSS3

Geolocation

https://demos.mozilla.org/en-US/#holo-mobile

http://diveintohtml5.org/

http://html5doctor.com/

https://build.phonegap.com/

Web Development has been a long and arduous journey...

It is time we have some fun!

Cheers!Chris Heilmann

@codepo8#mozilla

#html5/freenet