Slide 1

Slide 1 text

Writing Clean, Clear, & Semantic Markup with HTML5 with your friend, Brad Parbs

Slide 2

Slide 2 text

I’m Brad Parbs. WordPress fanatic. I build things for clients. I build things for myself. I write a lot of HTML. I do not have a beard. I’m Brad Parbs. @bradparbs on Twitter github.com/bradp bradparbs.com snowdaygroup.com

Slide 3

Slide 3 text

intro It's not just markup. You don’t have to change what you're doing. It's pretty easy to start. You can use it now. It's here to stay.

Slide 4

Slide 4 text

the doctype tl;dr

Slide 5

Slide 5 text

semantic markup “Semantic HTML is the use of HTML markup to reinforce the semantics, or meaning, of the information in webpages rather than merely to define its presentation or look.” -Wikipedia

Slide 6

Slide 6 text

who cares though? Screen Readers Search Engines (“the Google”) More concise HTML == smaller file size Easier to understand (for styling or new devs) Decouples styling from HTML even more It’s human readable

Slide 7

Slide 7 text

who cares though? This is a heading

This is a heading

Slide 8

Slide 8 text

html5 shim https://code.google.com/p/html5shim/

Slide 9

Slide 9 text

old style html

Slide 10

Slide 10 text

new style html

Slide 11

Slide 11 text

space jam is awesome http://www2.warnerbros.com/spacejam/movie/jam.htm

Slide 12

Slide 12 text

overview          ...          ...                                                            ...                                        ...          ... http://stackoverflow.com/questions/4781077/html5-best- practices-section-header-aside-article-tags

Slide 13

Slide 13 text

section The element represents a generic section of a document or application. A section is a thematic grouping of content: - chapter - various tabbed pages in a tabbed dialog box - numbered sections of a thesis ... - A page could be split into sections for an introduction, news items, and contact information. - A section typically with a heading.

Slide 14

Slide 14 text

section The element represents a generic section of a document or application.

Slide 15

Slide 15 text

aside - pull quotes - sidebars - advertising - groups of nav elements The element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content.

Slide 16

Slide 16 text

aside The element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content.

Slide 17

Slide 17 text

article The element represents an independent item section of content. - forum post - magazine article - newspaper article - blog entry - user-submitted comment

Slide 18

Slide 18 text

article The element represents an independent item section of content.

Slide 19

Slide 19 text

header The element represents a group of introductory or navigational aids. - A header element is intended to usually contain the section's heading (an h1– h6 element) - The header element can also be used to wrap a section's table of contents, a search form, or any relevant logos.

Slide 20

Slide 20 text

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

Slide 21

Slide 21 text

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

Slide 22

Slide 22 text

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

Slide 23

Slide 23 text

footer The element represents a footer for its nearest ancestor sectioning content or sectioning root element. -A footer typically contains information about its section: - author - links to related documents - copyright data - Footers don't necessarily have to appear at the end of a section, though they usually do.

Slide 24

Slide 24 text

footer

Slide 25

Slide 25 text

nav The element represents a section with navigation links. - Navigation links: - links to other pages - links to parts within the page - Not all groups of links on a page need to be in a nav element. The nav element is appropriate only for sections that consist of major navigation blocks. In particular, it is common for footers to have a short list of links to various pages of a site, such as the terms of service, the home page, and a copyright page. The footer element alone is sufficient for such cases, without a nav element.

Slide 26

Slide 26 text

nav The element represents a section with navigation links.

Slide 27

Slide 27 text

canvas A element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, or other visual images on the fly.

Slide 28

Slide 28 text

canvas A element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, or other visual images on the fly. http://net.tutsplus.com/articles/web-roundups/21- ridiculously-impressive-html5-canvas-experiments/ http://www.effectgames.com/ demos/canvascycle/

Slide 29

Slide 29 text

time The

Slide 30

Slide 30 text

video A element is used for playing videos or movies.

Slide 31

Slide 31 text

audio An element represents a sound or an audio stream.

Slide 32

Slide 32 text

forms

Slide 33

Slide 33 text

input types

Slide 34

Slide 34 text

for search boxes for spinboxes for sliders for color pickers for telephone numbers for web addresses for email addresses for calendar date pickers for months for weeks for timestamps for precise, absolute date+time stamps for local dates and times

Slide 35

Slide 35 text

placeholder

Slide 36

Slide 36 text

autofocus

Slide 37

Slide 37 text

javascript + =

Slide 38

Slide 38 text

modernizr Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

Slide 39

Slide 39 text

modernizr if (Modernizr.canvas) { alert("This browser supports HTML5 canvas!"); }

Slide 40

Slide 40 text

geolocation

Slide 41

Slide 41 text

localstorage

Slide 42

Slide 42 text

resources http://diveintohtml5.info http://html5doctor.com/ http://www.w3.org http://html5demos.com/ http://www.html5rocks.com/en/ http://caniuse.com/

Slide 43

Slide 43 text

live demos?

Slide 44

Slide 44 text

thanks

Slide 45

Slide 45 text

what we covered there’s a lot more to learn!