55
Ordered List Brandon Keepers Grand Rapids Web Development Group January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Ordered ListBrandon KeepersGrand Rapids Web Development Group

January 31, 2011

HTML5An Introduction to

Monday, January 31, 2011

Page 2: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

HTML5Hyper Trendy Marketing Lingo v5

@kplawver

Monday, January 31, 2011

Page 3: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Monday, January 31, 2011

Page 4: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

1. Overview2. History3. Features

Monday, January 31, 2011

Page 5: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

1. Overview

Monday, January 31, 2011

Page 6: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

What is HTML5?good question.

Monday, January 31, 2011

Page 7: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Monday, January 31, 2011

Page 8: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Monday, January 31, 2011

Page 9: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

http://whatwg.org/html

Monday, January 31, 2011

Page 10: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

http://www.w3.org/TR/html5/

Monday, January 31, 2011

Page 11: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

…it’s complicated

Monday, January 31, 2011

Page 12: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

HTML5 is…DOM APIStructural elementsMultimedia elementsCanvasMicrodata

Monday, January 31, 2011

Page 13: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

HTML5 is “not”…Web WorkersWeb StorageWebSocket APIWebSocket protocolGeolocation API

Monday, January 31, 2011

Page 14: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

2. History

Monday, January 31, 2011

Page 15: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

HTML 4.0 publishedDecember 1997

Monday, January 31, 2011

Page 16: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

…working groupshut down

Monday, January 31, 2011

Page 17: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

XML 1.0February 1998

Monday, January 31, 2011

Page 18: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

XHTML draftDecember 1998

Monday, January 31, 2011

Page 19: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

application/xhtml+xml

Monday, January 31, 2011

Page 20: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Appendix C

Monday, January 31, 2011

Page 21: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

XHTML 1.1May 2001

Monday, January 31, 2011

Page 22: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Appendix C

Monday, January 31, 2011

Page 23: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Workshop on Web Applications and Compound Documents

June 2004

Monday, January 31, 2011

Page 24: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

…evolve HTML 4

Monday, January 31, 2011

Page 25: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

voted 11:4 against

Monday, January 31, 2011

Page 26: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

WHATWGJune 2004

Monday, January 31, 2011

Page 27: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Web Applications 1.0

Monday, January 31, 2011

Page 28: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

W3C works with WHATWG

October 2006

Monday, January 31, 2011

Page 29: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Web Applications 1.0becomesHTML5

Monday, January 31, 2011

Page 30: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

3. Features

Monday, January 31, 2011

Page 31: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

doctypethe “standards mode” trigger

Monday, January 31, 2011

Page 32: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

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

Monday, January 31, 2011

Page 33: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

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

Monday, January 31, 2011

Page 34: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

<!DOCTYPE  html>

Monday, January 31, 2011

Page 35: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

the root element<html>

Monday, January 31, 2011

Page 36: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

<html  xmlns="http://www.w3.org/1999/xhtml"            lang="en"            xml:lang="en">

Monday, January 31, 2011

Page 37: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

<html  xmlns="http://www.w3.org/1999/xhtml"            lang="en"            xml:lang="en">

Monday, January 31, 2011

Page 38: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

<html  lang="en">

Monday, January 31, 2011

Page 39: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Character Encoding

Monday, January 31, 2011

Page 40: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Content-­‐Type:  text/html;  charset="utf-­‐8"

Monday, January 31, 2011

Page 41: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

<meta  http-­‐equiv="Content-­‐Type"            content="text/html;  charset=utf-­‐8">

Monday, January 31, 2011

Page 42: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

<meta  http-­‐equiv="Content-­‐Type"            content="text/html;  charset=utf-­‐8">

Monday, January 31, 2011

Page 43: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

<meta  charset="utf-­‐8"  />

Monday, January 31, 2011

Page 44: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Structural Elements<section>

<nav>

<article>

<aside>

<hgroup>

<header>

<footer>

Monday, January 31, 2011

Page 45: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Inline Elements<time>

<mark>

<meter>

<progress>

Monday, January 31, 2011

Page 46: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Multimedia <video> <audio>

Monday, January 31, 2011

Page 47: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

<video  src="movie.mp4"  width="320"              height="240"  autoplay></video>

Monday, January 31, 2011

Page 48: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

<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

Page 49: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

canvasresolution-dependent bitmap canvas

Monday, January 31, 2011

Page 50: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

<canvas  id="a"></canvas>

canvas#a  {height:200px;  width:200px;}

Monday, January 31, 2011

Page 51: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

var  a  =  document.getElementById("a");var  context  =  a.getContext("2d");context.fillRect(0,  0,  150,  150);

Monday, January 31, 2011

Page 52: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

2D Context Rectanglesc.fillRect(x, y, w, h);c.strokeRect(x, y, w, h);

Transformationsc.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 Stylesc.strokeStyle = color;c.fillStyle = color;

Textc.fillText(text, x, y, maxWidth);

Pathsc.moveTo(x, y);c.lineTo(x, y);c.arcTo(x1, y1, x2, y2, radius);c.rect(x, y, w, h);c.fill();c.stroke();

Statec.save();c.restore();

Monday, January 31, 2011

Page 53: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Monday, January 31, 2011

Page 54: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

…and so much more!

Monday, January 31, 2011

Page 55: An Introduction to HTML5 Keepers... · Ordered List Grand Rapids Web Development Group Brandon Keepers January 31, 2011 HTML5 An Introduction to Monday, January 31, 2011

Ordered List

Thank [email protected]@bkeepers

Brandon KeepersGrand Rapids Web Development GroupJanuary 31, 2011

Monday, January 31, 2011