• Save
Html5: What is it?
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Html5: What is it?

  • 1,879 views
Uploaded on

This was a presentation for the NYCSS meetup group on March 21, 2011 outlining HTML 5, by Joey Dehnert....

This was a presentation for the NYCSS meetup group on March 21, 2011 outlining HTML 5, by Joey Dehnert.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,879
On Slideshare
1,696
From Embeds
183
Number of Embeds
3

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 183

http://joeydehnert.com 181
http://localhost 1
http://localhost 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Meetup HTML 5 – What is it? Joey Dehnert joeydehnert.com t: twitter.com/joeydehnert
  • 2. What is HTML 5?
    • It's still the HTML we all know and love, but better
    • It’s smarter
    • It’s more intuitive
  • 3. How it’s smarter.
    • Sweet new features like:
      • HTML 5 forms
      • Form validations
      • Spin Boxes
      • Sliders
      • Date Pickers
      • Color Pickers
      • Geolocation
      • Editable Content
      • Local Storage
      • Microdata
      • Canvas
      • Video/Audio
  • 4. Example of Smarter
    • HTML 5 Forms (Sadly, these aren’t widely supported yet, but are still super cool)
      • New input attributes
      • <input name=&quot;input &quot; placeholder=&quot;I show up in a blank input field”>
      • <input name=“autofocus&quot; autofocus>
  • 5. Example of Smarter
    • Now you see it.
    • Now you don’t.
  • 6. Example of Smarter
    • HTML 5 Forms (Sadly, these aren’t widely supported yet, but are still super cool)
    • New input types
      • <input type=&quot;email&quot;>
      • <input type=&quot;url&quot;>
  • 7. Example of Smarter
  • 8. Smart Fringe Features
    • Form Validation
    • Spinboxes (IMG)
    • Sliders (IMG)
    • Date Pickers (IMG)
    • Color Picker (IMG)
  • 9. Other Awesome Things
    • Geolocation
    • Editable Content
    • Local Storage
    • Microdata
  • 10. It is more intuitive.
    • Simplified doctype, html element and charset
    • <!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;> to <!doctype html>
    • <html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;> to <html lang=&quot;en&quot;>
    • <meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /> to <meta charset=utf-8>
  • 11. It is more intuitive.
    • A sampling of the major new elements available to us are
    • more semantic and named in a straight forward,
    • meaningful way that makes markup more intuitive and
    • easier to use.
    • <header> instead of <div id=&quot;header”>
    • <nav> instead of <ul id=&quot;nav”>
    • <article> instead of <div id=&quot;post&quot;> or <div id=&quot;article”>
    • <section> instead of <div id=&quot;content”>
    • <hgroup>
    • <time> instead of <div id=&quot;date-time”>
    • <mark> instead of <span id=&quot;highlight”>
    • <aside> instead of <div id=&quot;sidebar”>
    • <footer> instead of <div id=&quot;footer&quot;>
  • 12. HTML 5 , what it isn't.
    • It's not just canvas, canvas is a part of the HTML
    • 5 spec. &quot;The canvas element provides scripts
    • with a resolution-dependent bitmap canvas,
    • which can be used for rendering graphs, game
    • graphics, or other visual images on the fly.”
  • 13. HTML 5 , what it isn't.
    • It's not javascript
  • 14. What can we use now?
    • New semantic elements <header>, <section>, etc.
    • Geolocation
    • Editable Content
    • Microdata
    • Canvas
    • Video/Audio
  • 15. What can we use now?
    • New semantic elements <header>, <section>, etc.
    • Geolocation
    • Editable Content
    • Microdata
    • Canvas
    • Video/Audio
  • 16. Real World Example
    • nikebetterworld.com
  • 17. Real World Example
    • <div> vs <section> vs <article>
    • <div>
    • The DIV element, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to
    • documents. This element defines content to be block-level (DIV) but impose no other presentational idioms on the
    • content. Thus, authors may use these elements in conjunction with style sheets, the lang attribute, etc., to tailor HTML
    • to their own needs and tastes.
    • <section>
    • The section element represents a generic document or application section. A section, in this context, is a thematic
    • grouping of content, typically with a heading. Examples of sections would be chapters, the tabbed pages in a tabbed
    • dialog box, or the numbered sections of a thesis. A Web site's home page could be split into sections for an introduction,
    • news items, contact information.
    • <article>
    • The article element represents a component of a page that consists of a self-contained composition in a document,
    • page, application, or site and that is intended to be independently distributable or reusable, e.g. in syndication. This
    • could be a forum post, a magazine or newspaper article, a Web log entry, a user-submitted comment, an interactive
    • widget or gadget, or any other independent item of content.
  • 18. Real World Example
    • <section class=&quot;story&quot; id=&quot;story-video&quot; data-controller=&quot;Video&quot; data-videoid=&quot;821835377001&quot; data-scrolloffset=&quot;100&quot; data-nav=&quot;Home&quot; data-align=&quot;center&quot;>
    • <article data-omniture=&quot;Video&quot;>
    • <div class=&quot;video&quot;>
    • <a href=&quot;#/play&quot; class=&quot;play-button&quot;>Play</a>
    • <h1 id=&quot;video-preroll&quot;>This film is made from 100% recycled ads.</h1>
    • </div>
    • </article><!--video-->
    • <div class=&quot;darkslide&quot;></div>
    • <div id=&quot;video-container&quot;></div>
    • <a href=&quot;#/close_video&quot; id=&quot;close-video&quot; title=&quot;Close&quot;>Close</a>
    • </section><!--story-->
  • 19. Real World Example
    • <section class=&quot;story&quot; id=&quot;story-world-championship&quot; data-controller=&quot;StoryWorldChampionshipJersey&quot; data-scrolloffset=&quot;50&quot; data-nav=&quot;8 Plastic Bottles&quot;>
    • <article>
    • <header data-omniture=&quot;World-Championship-Jersey&quot;>
    • <h2>Our products are a load of rubbish.</h2>
    • <h1>8 Plastic Bottles</h1>
    • <p>
    • Each Nike 2010 World Championship Football jersey is made entirely from recycled polyester. That's up to eight recycled plastic bottles per jersey. In total, that diverted nearly 13 million plastic bottles from landfills. Yes, you read right. 13 million. Plastic. Bottles.
    • </p>
    • </header>
    • <section class=&quot;article-content”></section><!--article-content-->
    • </article><!--article-->
    • <div class=&quot;bg&quot;></div>
    • </section><!--story-->
  • 20. Real World Example
    • <nav class=&quot;more&quot;>
    • <a href=&quot;#/more&quot;></a>
    • </nav><!--more-->
  • 21. Resources
    • Learn:
    • http://diveintohtml5.org/
    • http://dev.w3.org/html5/spec/Overview.html
    • Use:
    • http://html5boilerplate.com/
    • http://www.modernizr.com/