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

Post on 09-Sep-2020

2 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Getting Started with html5

Mike Taylor @miketaylr

1

Saturday, August 29, 2009

What is html5?

And why should I care?

2

Saturday, August 29, 2009

New semantic elements

3

Saturday, August 29, 2009

4

Saturday, August 29, 2009

New semantic elements

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

5

Saturday, August 29, 2009

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

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

2022?

October 2009?

Timeframe

6

Saturday, August 29, 2009

When can I use html5?

7

Saturday, August 29, 2009

When can I use html5?Today!

7

Saturday, August 29, 2009

When can I use html5?Today! (sorta)

7

Saturday, August 29, 2009

When can I use html5?Today! (sorta)

IE (all of ‘em):

7

Saturday, August 29, 2009

8

Saturday, August 29, 2009

9

Saturday, August 29, 2009

document.createElement(‘nav’);

9

Saturday, August 29, 2009

<!--[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

11

Saturday, August 29, 2009

When can I use html5?Today! (sorta)

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

12

Saturday, August 29, 2009

A sample site.

13

Saturday, August 29, 2009

Doctype

14

Saturday, August 29, 2009

Doctype

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

14

Saturday, August 29, 2009

Doctype

<!DOCTYPE html>

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

14

Saturday, August 29, 2009

Doctype

<!DOCTYPE html>

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

That’s it.

14

Saturday, August 29, 2009

CSS

15

Saturday, August 29, 2009

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

*see html5doctor for full reset stylesheet.

15

Saturday, August 29, 2009

16

Saturday, August 29, 2009

17

Saturday, August 29, 2009

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

<header>

18

Saturday, August 29, 2009

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

22

Saturday, August 29, 2009

23

Saturday, August 29, 2009

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

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

26

Saturday, August 29, 2009

27

Saturday, August 29, 2009

29

Saturday, August 29, 2009

30

Saturday, August 29, 2009

33

Saturday, August 29, 2009

Validation?

http://validator.w3c.org/check

http://html5.validator.nu/

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

34

Saturday, August 29, 2009

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

thanks.

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

36

Saturday, August 29, 2009

top related