getting started with html5 - miketaylr.comthe element represents the contact information for its...

46
Getting Started with html5 Mike Taylor @miketaylr 1 Saturday, August 29, 2009

Upload: others

Post on 09-Sep-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

Getting Started with html5

Mike Taylor @miketaylr

1

Saturday, August 29, 2009

Page 2: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

What is html5?

And why should I care?

2

Saturday, August 29, 2009

Page 3: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

New semantic elements

3

Saturday, August 29, 2009

Page 4: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

4

Saturday, August 29, 2009

Page 5: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

New semantic elements

Rich DOM APIs (local storage, native drag & drop, content editable fields, web forms 2.0)

5

Saturday, August 29, 2009

Page 6: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

New semantic elements

Rich DOM APIs (local storage, native drag & drop, content editable fields, web forms 2.0)

Rich embedded content (<audio>, <video>, <canvas>)

5

Saturday, August 29, 2009

Page 7: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

New semantic elements

Rich DOM APIs (local storage, native drag & drop, content editable fields, web forms 2.0)

Rich embedded content (<audio>, <video>, <canvas>)

...and a whole lot more.5

Saturday, August 29, 2009

Page 8: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

2022?

October 2009?

Timeframe

6

Saturday, August 29, 2009

Page 9: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

When can I use html5?

7

Saturday, August 29, 2009

Page 10: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

When can I use html5?Today!

7

Saturday, August 29, 2009

Page 11: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

When can I use html5?Today! (sorta)

7

Saturday, August 29, 2009

Page 12: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

When can I use html5?Today! (sorta)

IE (all of ‘em):

7

Saturday, August 29, 2009

Page 13: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

8

Saturday, August 29, 2009

Page 14: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

9

Saturday, August 29, 2009

Page 15: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

document.createElement(‘nav’);

9

Saturday, August 29, 2009

Page 16: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

<!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"> </script>

<![endif]-->

html5 shiv script on google code:

10

Saturday, August 29, 2009

Page 17: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

11

Saturday, August 29, 2009

Page 18: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

When can I use html5?Today! (sorta)

Camino, FF2:http://remysharp.com/2009/04/14/html5-and-firefox2/

12

Saturday, August 29, 2009

Page 19: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

A sample site.

13

Saturday, August 29, 2009

Page 20: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

Doctype

14

Saturday, August 29, 2009

Page 21: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

Doctype

“A DOCTYPE is a mostly useless, but required, header.”

14

Saturday, August 29, 2009

Page 22: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

Doctype

<!DOCTYPE html>

“A DOCTYPE is a mostly useless, but required, header.”

14

Saturday, August 29, 2009

Page 23: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

Doctype

<!DOCTYPE html>

“A DOCTYPE is a mostly useless, but required, header.”

That’s it.

14

Saturday, August 29, 2009

Page 24: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

CSS

15

Saturday, August 29, 2009

Page 25: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

CSSarticle, aside, dialog, figure, footer, header, hgroup, menu, nav, section { display: block; }

*see html5doctor for full reset stylesheet.

15

Saturday, August 29, 2009

Page 26: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

16

Saturday, August 29, 2009

Page 27: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

17

Saturday, August 29, 2009

Page 28: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

The <header> element represents a group of introductory or navigational aids.

<header>

18

Saturday, August 29, 2009

Page 30: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

Outline

Mappetite1.City guidemaps to great food2.Untitled Section3.Mappetite Mondays

1.Stoptaste: Can Ravell in Barcelona2.Wandersee: Thompkins Square Park3.Wandersee: Alcatraz Island

4.Openings & Closings5.Connect with Mappetite!

20

Saturday, August 29, 2009

Page 32: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

22

Saturday, August 29, 2009

Page 33: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

23

Saturday, August 29, 2009

Page 34: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

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, possibly with a footer.

<section>

24

Saturday, August 29, 2009

Page 35: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

The <article> element represents a section of a page that consists of a composition that forms an independent part of a document, page, or site.

<article>

25

Saturday, August 29, 2009

Page 36: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

26

Saturday, August 29, 2009

Page 37: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

27

Saturday, August 29, 2009

Page 39: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

29

Saturday, August 29, 2009

Page 40: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

30

Saturday, August 29, 2009

Page 43: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

33

Saturday, August 29, 2009

Page 44: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

Validation?

http://validator.w3c.org/check

http://html5.validator.nu/

http://gsnedders.html5.org/outliner/

34

Saturday, August 29, 2009

Page 45: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

Resources

http://wiki.whatwg.org/wiki/FAQ

http://whatwg.org/html5

#whatwg (irc.freenode.org)

http://html5doctor.com

http://htmldemos.com

35

Saturday, August 29, 2009

Page 46: Getting Started with html5 - miketaylr.comThe  element represents the contact information for its nearest article or body element ancestor. If that is the body element,

thanks.

*http://www.flickr.com/photos/justinsomnia/

36

Saturday, August 29, 2009