Professional Documents
Culture Documents
Why HTML5?
“HTML 5 will enable better cross-browser
compatibility and better support for ‘Web 2.0-
style’ Web applications in addition to
documents.”
Brendan Eich
CTO, Mozilla
Why Use HTML5 Today?
• Pros
– Better semantics
– Less code
– Improved user experience
• Cons
– Some work is needed to accommodate older
browsers
Doctype xHTML
<!DOCTYPE HTML>
Layout - HTML4, xHTML
div=”header”
div=”nav”
div=”section”
di
div=”article” div=”sidebar”
div=”footer”
Layout - HTML5
<header>
<nav>
<section>
di
<article> <aside>
<footer>
<header>
<nav>
<article>
<aside>
<footer>
<time>
<figure>
<legend> <meter>
Canvas Video Geolocation App Cache & Web
Database Workers
Until Recently, You Couldn’t Draw on the Web
Canvas - 2d Drawing
Canvas example
Video is Complicated, and Outside Your Control
Audio and Video