HTML5 - techMaine Presentation 5/18/09


Published on

An overview of HTML5, given @ techMaine Web Design Users Group meeting 5/18/09

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

  • HTML5 - techMaine Presentation 5/18/09

    1. 1. HTML5 - A Look Ahead presented to: techMaine Web Design User’s Group May 18, 2009
    2. 2. The obvious question..... WTF do we need HTML5 ?!?!?!
    3. 3. 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
    4. 4. Why HTML5? HTML5 will have an application cache that is capable of storing all resources in your Web app so that the browser can load them and use them even when you’re offline
    5. 5. Why HTML5? HTML5 enables mobile and desktop Web site designers to deliver the advantages of client-side and server-side development to their users simultaneously. API development and workability in the browsers will take a leap forward.
    6. 6. Problems with HTML5 • Not backwards-compatible? • extensible? - questionable • <P> = <p> ...and... <div class=”foo”> = <DIV class=foo> • removal of certain tags - <acronym> • removal of access keys? This could set back the usability/accessibility of markup (or, there could be good reasons for doing this)
    7. 7. Please remain calm..... It’s just a working draft, people!
    8. 8. What does HTML5 mean to Web designers? • new tags for semantic layout • improved microformatting • new tags for incorporating rich media • new tags for APIs, applications
    9. 9. Browser support Browser support? What browser support??
    10. 10. Browser Support • Opera 9.x (supposedly) offers best support • Safari 3.x - sketchy (best support in my experience) • Firefox 3.x - sketchy • Chrome? - sketchy • IE8 - veeerrrry sketchy • IE7 - nope • IE6? (LOL!)
    11. 11. New Tags • article • datatemplate • nav • aside • embed • nest • audio • event-source • output • canvas • figure • progress • command • footer • source • datagrid • header • time • datalist • mark • video • meter
    12. 12. doctype - “Look Ma! No DTD!” <!DOCTYPE HTML>
    13. 13. doctype xHTML: <!DOCTYPE html PUBLIC quot;-//W3C//DTD XHTML 1.0 Strict//ENquot; quot; strict.dtdquot;>
    14. 14. HTML5 - basic document structure <!DOCTYPE HTML> <html lang=quot;enquot;> <head> <meta charset=quot;UTF-8quot;> <title>HTML5</title> </head> <body> </body> </html>
    15. 15. Layout - HTML4, xHTML div=”header” div=”nav” div=”section” di div=”article” div=”sidebar” div=”footer”
    16. 16. Layout - HTML5 <header> <nav> <section> di <article> <aside> <footer>
    17. 17. Layout - HTML5 <body> <header> <h1>HTML 5</h1> </header> <nav> <ul></ul> </nav> <section> <article> <p></p> </article> <aside> <p></p> </aside> </section> <footer> <p></p> </footer> </body>
    18. 18. HTML5 - Quirks in IE <script type=quot;text/javascriptquot;> document.createelement('header'); </script> <header>javascript must be used to force ie to style this element</header>
    19. 19. HTML5 & CSS • CSS works fine in most cases w/t/new tags • New tags are treated as inline elements; need to use display:block; • Need to use javascript to force IE to recognize new HTML5 tags and apply CSS to them
    20. 20. Microformats - now <div class=quot;veventquot;> <a class=quot;urlquot; href=quot;http://aneventapart.comquot;></a> <span class=quot;summaryquot;>An Event Apart Boston</span> <abbr class=quot;dtstartquot; title=quot;2009-06-22quot;>June 22</abbr> - <abbr class=quot;dtendquot; title=quot;2009-06-23quot;>23</abbr> in <span class=quot;locationquot;>Boston Marriott, Copley Place, Boston, MA</span> </div>
    21. 21. Microformats - w/HTML5 <div class=quot;veventquot;> <a class=quot;urlquot; href=quot;http://aneventapart.comquot;></a> <span class=quot;summaryquot;>An Event Apart Boston</span> <time class=quot;dtstartquot; title=quot;2009-06-22quot;>June 22</time> - <time class=quot;dtendquot; title=quot;2009-06-23quot;>23</time> in <span class=quot;locationquot;>Boston Marriott, Copley Place, Boston, MA</span> </div>
    22. 22. <audio> <audio src=quot;/tunes/boom.mp3quot; controls=quot;truequot;> <a href=quot;/tunes/boom.mp3quot;>Listen</a> </audio>
    23. 23. <video> <video src=quot;/video/ac-testimonial-web.movquot; controls=quot;truequot;> <p>your browser does not support the video tag</p> </video>
    24. 24. <canvas> <canvas id=”a_canvas” width=”400” height=”300”> <p>Oops! Your browser can’t display the canvas.</p> </canvas>
    25. 25. New Rules for markup This is legal in HTML5: <li> <a href=quot;/2009/seattle/quot;> <h2><img src=quot;/i/09/city-seattle.jpgquot; alt=quot;Seattlequot; /></h2> <h3>May 4—5, 2009</h3> <p>Bell Harbor International Conference Center</p> </a> </li>
    26. 26. New Rules for markup This is how you do it in HTML4/xHTML: <li> <h2><a href=quot;/2009/seattle/quot;><img src=quot;/i/09/city-seattle.jpgquot; alt=quot;Seattlequot; /> </a> </h2> <h3><a href=quot;/2009/seattle/quot;>May 4—5, 2009 </a> </h3> <p><a href=quot;/2009/seattle/quot;>Bell Harbor International Conference Center </a> </p> </li>
    27. 27. Validation
    28. 28. What does it all mean? • It’s a work in progress • It’s going to be awhile before we’re using HTML5 • It may turn up in mobile browsers first • HTML5 will lead to browser-based apps that are more powerful and more responsive
    29. 29. <Thank you!> Rob Landry twitter: @portlandhead, @pemaquid