HTML5 and Designing a Rich
Internet Experience
Garth Colasurdo
HSLIC Web and Applications Group [email protected]
In This Presentation
•HTML5 ≈ HTML 5 + CSS 3 + JavaScript
•Rich Internet Applications (RIA)
•HTML5 x 5
•Caution and Progress
•Example and Reference Sites
HTML5 ≈ HTML 5 + CSS 3 + JavaScript
•HTML5 is a suite of tools for:
–Markup (HTML 5)
–Presentation (CSS 3)
–Interaction (DOM, Ajax, APIs)
•Brought on by the evolving use of the web
http://slides.html5rocks.com/
A Rough History of Web Standards
91-9293-9495-9697-9899-0001-0203-0405-0607-0809-1011-1213-14
HTML 1HTML2 HTML 4XHTML
1
HTML 5
CSS 1 CSS 2 T-less DWeb 2.0 CSS3
JS ECMA,
DOM
DOM 2 Ajax DOM,
APIs
2004 WHATWG started
2008 W3C Working Draft
2012 (2010)W3C Candidate Rec
2022 W3C Rec
1996 –CSS 1W3C Rec
1998 –CSS 2W3C Rec
1999–CSS 3Proposed
2005–CSS 2.1W3C Candidate Rec
2001 –CSS 3W3C Working Draft
HTML 5 CSS
Rich Internet Applications (RIA)
•Space between the internet and the desktop
•Apps that look good and behave well
•Adobe Air/Flash, Java, Silverlight, Gears
•Availability
–Anywhere a web browser is available
–As a desktop widget or application
–Part of a mobile application store
RIA Examples
5 HTML Enhancements
•HTML
•Forms
•CSS
•Offline applications
•Local storage
HTML Extended
•Document Flow: div, section, article, nav,
aside, header, footer
•Audio, Video and Embed
•Canvas: paths, gradients, image manipulation,
events
•Microdata for semantics and enhanced search
engine results (Google Rich Snippets)
Form Enhancements
•Placeholder text
•Specific text input: email, URL, number, search
•Slider
•Date picker
•User Agent validation
CSS Effects
•Rounded corners
•Gradients
•Box and text shadows
•Fonts
•Transparencies
•Multiple background images and border images
•Multiple columns and grid layout
•Box sizing
•Stroke and outlines
•Animation, movement and rotation
•Improved selectors
Local Storage
•Beyond cookies-local storage
–Manipulated by JavaScript
–Persistent
–5MB storage per “origin”
–Secure (no communication out of the browser)
•Session storage
–Lasts as long as the browser is open
–Each page and tab is a new session
•Browser based SQLite or IndexedDB
Cautions
•Browser implementation is fragmented
•Standards are in development
–HTML Candidate Recommendation is
scheduled for 2012
–CSS3 is in multiple drafts and proposals
–ECMA-262 (edition 3) (or JavaScript 1.5)
•New markup and architecture design
Progress
•Multiple support levels
–HTML editors
–CSS editors and frameworks
–JavaScript libraries and frameworks
•Astounding user agent development
–JavaScript engines
–Rendering engines
–Device awareness
–Widget adoption
–Robust vendor competition and cooperation
•Continue with progressive enhancement/graceful failure
methods
Advocacy Sites
•Total clearing house of HTML5
(start with the presentation)
http://html5rocks.com
•HTML5 Watch is a list of interesting RIA
advances
http://html5watch.tumblr.com
•CSS3 Blog
http://www.css3.info
Demos and Experiments
•Chrome Experiments
http://www.chromeexperiments.com
•Apple HTML5 Showcase
http://www.apple.com/html5/
•Canvas Demos
http://www.canvasdemos.com
•RIA Demos with browser support listed
http://html5demos.com
•Our Solar System
http://neography.com/experiment/circles/solarsystem/
•Pure CSS3 Animated AT-AT Walker from Star Wars
http://blog.optimum7.com/anthony/website-design/pure-css3-animated-at-at-
walker-from-star-wars-2.html
Developer Reference Sites
•W3C
http://dev.w3.org/html5/html-author/
http://w3.org/TR/css3-roadmap/
•W3Schools HTML 5 Reference
http://www.w3schools.com/html5/
•Dive Into HTML 5 (prerelease site for an O’Reilly book)
http://diveintohtml5.org
•WebKit (Safari and Chromium)
http://developer.apple.com/safari/library/navigation/
http://www.chromium/home/
•Mozilla
http://developer.mozilla.org/en/html/html5/
•IE 8 & 9
http://msdn.microsoft.com/en-us/library/aa737439.aspx
http://ie.microsoft.com/testdrive/