$30 off During Our Annual Pro Sale. View Details »

A Chronicle of the Nebulous HTML5

A Chronicle of the Nebulous HTML5

Why is EVERYTHING called HTML5, how did we get here, and what's in it for me?

Brandon Keepers

May 23, 2013
Tweet

More Decks by Brandon Keepers

Other Decks in Programming

Transcript

  1. HTML5 A CHRONICLE OF THE NEBULOUS extracted from the annals

    of history by Brandon Keepers, a.k.a. @bkeepers.
  2. According to W3C: 1. Defines a single language called HTML5

    2. Defines detailed processing models 3. Improves markup for documents 4. Introduces markup and APIs for emerging idioms
  3. HTML5 is technically not… Web Workers Web Storage Web Messaging

    Web SQL Database Web Audio API WebRTC WebSocket Geolocation Indexed Database File API [other web standard…]
  4. Competing vision to evolve HTML4 voted 14:8 against Workshop on

    Web Applications and Compound Documents June 2004
  5. “Some things are clearer with hindsight of several years. It

    is necessary to evolve HTML incrementally.” W3C — WHATWG October 2006
  6. Semantic Input Types <input type="tel"> <input type="search"> <input type="url"> <input

    type="email"> <input type="datetime"> <input type="date"> <input type="month"> <input type="week"> <input type="time"> <input type="number"> <input type="range"> <input type="color">
  7. Data Attributes <input data-href="/api/users" class="users" type="search"> // JS API var

    input = document.querySelector('.users'); var url = input.dataset['href'];
  8. Multimedia Elements <video width="320" height="240" controls> <source src="pr6.mp4" type='video/mp4; codecs="mp4a.40.2"'>

    <source src="pr6.webm" type='video/webm; codecs="vp8, vorbis"'> <source src="pr6.ogv" type='video/ogg; codecs="theora, vorbis"'> </video> <audio src="/audio.ogg">
  9. 2D Context Rectangles c.fillRect(x, y, w, h); c.strokeRect(x, y, w,

    h); Transformations c.scale(x, y); c.rotate(angle); c.translate(x, y); c.transform(a, b, c, d, e, f); c.setTransform(a, b, c, d, e, f); Colors and Styles c.strokeStyle = color; c.fillStyle = color; Text c.fillText(text, x, y, maxWidth); Paths c.moveTo(x, y); c.lineTo(x, y); c.arcTo(x1, y1, x2, y2, radius); c.rect(x, y, w, h); c.fill(); c.stroke(); State c.save(); c.restore();
  10. Let’s review, HTML[5] is important because: 1. Defines a single

    language called HTML5 2. Defines detailed processing models 3. Improves markup for documents 4. Introduces markup and APIs for emerging idioms
  11. References Dive Into HTML5 http://diveintohtml5.info/past.html HTML5 differences from HTML4 http://www.w3.org/TR/2011/WD-html5-diff-20110405/

    HTML5 gets the splits http://www.netmagazine.com/news/html5-gets-splits-122102 Wikipedia http://en.wikipedia.org/wiki/HTML5