Leon Poole from Creative World gives you "Practical HTML5". A short talk that starts with a brief look at where HTML5 is currently, followed by some practical HTML5 markup examples.
This presentation was originally created for a discussion on HTML5 at the Brisbane Web Design meetup group.
2. Where is HTML5 at? HTML5 is in “last call” phase (Feb 2010),but was started by the Web Hypertext Application Technology Working Group (WHATWG) in 2004 Estimated that HTML5 will reach the W3C Candidate recommendation stage during 2012 Supported in Chrome, Firefox 3.5+, Opera, and Safari 4+, IE8(?) and IE9 already (JavaScript hack required to support earlier IE versions) HTML5 is at “HTML5”, not “HTML 5”
3. HTML5 has relatively good browser support, except for one... A little JavaScript will help IE recognise new HTML5 elements... <!--[if gte IE 6]> document.createElement('header'); document.createElement('footer'); document.createElement('section'); document.createElement('aside'); document.createElement('nav'); document.createElement('article'); document.createElement('time'); document.createElement('mark'); <![endif]-->
4. HTML5’s !DOCTYPE !DOCTYPE declares what type of document it is to the browser.. XHTML1.0: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Long and Complicated Seriously, who remembers all of this? HTML5: <!DOCTYPE html> Very short, easy to remember No Document Type Definition Simple!
5. Basic Page Structure Common HTML 4 Structure HTML5 Structure Images courtesy of A List Apart - An introduction to HTML 5 by Lachlan Hunt
8. HTML5: Blog Comments Markup <body> <header><h1>My Website</h1></header> <article> <header><h1>My best blog post</h1></header> <section><p>Story you can’t stop reading</p></section> <footer><p>Meta data</p></footer> <article id="comment-2"> <cite>Leon Poole</cite> <time datetime="2010-03-15">March 18th, 2010</time>* <p>Comment goes in here...</p> <footer> <p>You can <a href=“#”>Reply</a> to this comment. </p> </footer> </article> <article id=“comment-3”>...etc</article> <nav> <a href=“#”>Previous Post</a> <a href=“#”>Next Post</a></nav> </article> <footer></footer></body> * To my knowledge, Microformats tools don’t parse the time element right now
11. Final thoughts... Great in concept. Future of standards-based web development looks bright. Awesome for web and apps developers. Doesn’t change too much for web designers. Wondering how HTML5 will impact on SEO...?? I love it... but I’m more excited about CSS3 ;) Thank you!
12. Resources & Links: HTML 5 Tag Referencehttp://www.w3schools.com/html5/html5_reference.asp