Using HTML5 For a Great Open Web
Why HTML5?
<!DOCTYPE html>
<DIV>A monkey</DIV><p id=john>John’s P</p>
<input type=text><input type="text"><input type="text" />
<?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml">
MUST be application/xhtml+xml or application/xml
<noscript>Not in XHTML</noscript>
As XHTML
<article>
<video>
<time>
<section><nav>
<hgroup>
<header>
<footer>
<audio>
<aside>
<figcaption>
<figure>
<input type="tel">
<input type="search">
<input type="url">
<input type="email">
<input type="datetime">
<input type="date">
<input type="month">
<input type="week">
<input type="time">
<input type="datetime-local">
<input type="number">
<input type="range"><input type="color">
Web Storage
sessionStorage.setItem("FU", "Sarah Palin");console.log(sessionStorage.getItem("FU"));
localStorage.setItem("Job", "Politician");
var sarahPalin = { "contest" : "Miss Alaska pageant", "Talent" : "Flute playing"};
localStorage.setItem("sarah", JSON.stringify(sarahPalin));
console.log(typeof JSON.parse(localStorage.getItem("sarah")));
Web SQL
IndexedDB
Offline Web Applications
<!DOCTYPE html><html manifest="offline.appcache"><head>...
CACHE MANIFEST
# VERSION 10
CACHE:offline.htmlbase.css
FALLBACK:online.css offline.css
NETWORK:/live-updates
History API
var url = "http://robertnyman.com", title = "My blog", state = { address : url };
window.history.pushState(state.address, title, url);
window.history.replaceState(state.address, title, url);
Video
<video controls src="nasa.webm"></video>
<video controls> <source src="nasa.mp4"></source> <source src="nasa.webm"></source></video>
<video src="http://vid.ly/4w2g7d?content=video" controls></video>
Canvas
Apple even creates open standards for the web
-Steve Jobs
http://craftymind.com/factory/html5video/CanvasVideo.html
WebGL
http://code.google.com/p/webglsamples/
Flight of the Navigator
Robert Nymanrobertnyman.com/speaking/robertnyman.com/html5/Twitter: @robertnyman
Pictures:
Star Wars Awesome: http://jacobcharlesdietz.com/#/awesome/Robocop: http://www.meh.ro/2010/04/01/murphy-as-robocop/Royal wedding: http://twitpic.com/4r3mesStorage fail: http://failfun.com/funny-pictures/gangsta-fail/Cookie monster: http://honestviewsfromhonestman.blogspot.com/2009/09/cookie-monster.htmlYou suck: http://www.crunchgear.com/2009/04/22/gadgets-sucks/
Internet hole: http://cheezburger.com/View/3194058752History: http://animatedtv.about.com/od/fgmultimedia/ig/-Family-Guy--Pictures/Griffin-Family-History.htmCanvas: http://www.ioffer.com/c/Drawings-10004073D apple: http://3dst.de/typo3temp/pics/974e4144fc.jpgGo where I've never been: http://musicisart.ws/diane-arbus/Anything is possible: http://www.elektrodrop.com/2009/12/straight-out-of-china/?quick_view=1Super Mario Video: http://www.archive.org/details/Mario1_507
We can’t change history, but we can change the future.Be nice to each other.