Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An Introduction to HTML5

An Introduction to HTML5

A brief introduction to HTML5 given at the "Grand Rapids Web Development Group":http://www.meetup.com/grwebdev/events/15961856/

Brandon Keepers

January 31, 2011
Tweet

More Decks by Brandon Keepers

Other Decks in Programming

Transcript

  1. Ordered List Brandon Keepers Grand Rapids Web Development Group January

    31, 2011 HTML5 An Introduction to Monday, January 31, 2011
  2. HTML5 is “not”… Web Workers Web Storage WebSocket API WebSocket

    protocol Geolocation API Monday, January 31, 2011
  3. <!DOCTYPE  html                

       PUBLIC  "-­‐//W3C//DTD  XHTML  1.0  Strict//EN"                    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-­‐strict.dtd"> Monday, January 31, 2011
  4. <!DOCTYPE  html                

       PUBLIC  "-­‐//W3C//DTD  XHTML  1.0  Strict//EN"                    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-­‐strict.dtd"> Monday, January 31, 2011
  5. <html  xmlns="http://www.w3.org/1999/xhtml"            lang="en"    

           xml:lang="en"> Monday, January 31, 2011
  6. <html  xmlns="http://www.w3.org/1999/xhtml"            lang="en"    

           xml:lang="en"> Monday, January 31, 2011
  7. <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> Monday, January 31, 2011
  8. 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(); Monday, January 31, 2011
  9. Ordered List Thank you! [email protected] @bkeepers Brandon Keepers Grand Rapids

    Web Development Group January 31, 2011 Monday, January 31, 2011