73

Click here to load reader

Html5 - short intro

Embed Size (px)

Citation preview

Page 1: Html5 - short intro

HTML5Jason EisemanLibrarian for Emerging TechnologiesYale Law School

Page 2: Html5 - short intro

1990

Page 3: Html5 - short intro

<title>Hypertext Links</title>

<h1>Links and Anchors</h1>

A link is the connection between one piece of

<a href=WhatIs.html>hypertext</a> and another.

1990

Page 4: Html5 - short intro

“Support Existing Content”

HTML5 Design Principles:http://www.w3.org/TR/html-design-principles

Page 5: Html5 - short intro

World Wide Web Consortium

Page 6: Html5 - short intro

http://www.w3.org/

HTML 4.01 - 1999XHTML 1.0 - 2002XHTML 1.1 - 2010

W3C

Page 7: Html5 - short intro

Web Hypertext Application Technology Working Group

Page 8: Html5 - short intro

Web Forms 2.0 - 2004

WHATWG

http://www.whatwg.org

Page 9: Html5 - short intro

HTML5 - 2008 - working draft

WHATWG & W3C

http://www.w3.org

2012? - candidate

2022? - standard

Page 10: Html5 - short intro

So why worry about HTML5 now?

2022?

Page 11: Html5 - short intro

Today?

Firefox Internet Explorer 9 SafariChrome

all support HTML5 today

Opera

Page 12: Html5 - short intro

Today?

Page 13: Html5 - short intro

Today?

Page 14: Html5 - short intro

semantics & page structure

Page 17: Html5 - short intro

<link type="text/css" rel="stylesheet" media="all" href="style.css" />

Stylesheets

XHTML:

HTML5: <link rel="stylesheet" href="style.css" />

Page 18: Html5 - short intro

Semantics & Page Structure

<div id= "header">

<div id= "nav">

<div id= "sidebar"><div id= "section">

<div id= "footer">

Page 19: Html5 - short intro

Semantics & Page Structure

<header>

<nav>

<aside>

<article>

<footer>

<section>

Page 20: Html5 - short intro

Microformats

Semantics & Page Structure

Page 21: Html5 - short intro

forms

Page 22: Html5 - short intro

Validation

Forms

Page 23: Html5 - short intro

Required Fields

Forms

Page 24: Html5 - short intro

Placeholder

Forms

Page 25: Html5 - short intro

Forms

Page 26: Html5 - short intro

Datalist

Forms

Page 27: Html5 - short intro

Forms

Page 28: Html5 - short intro

Date Pickers

Forms

Page 29: Html5 - short intro

Forms

Page 30: Html5 - short intro

<input name="email" type="email" />

<input name="url" type="url" />

Forms

Page 31: Html5 - short intro

Forms

@

Page 32: Html5 - short intro

Forms

/ .com

Page 33: Html5 - short intro

Forms

http://jasoneiseman.com/aall11/forms.html

Page 34: Html5 - short intro

rich internet applications

Page 35: Html5 - short intro

canvas

Page 36: Html5 - short intro

Canvas

a drawing surface

Page 37: Html5 - short intro

Canvas

<canvas id="theCanvas" width="800" height="800">

</canvas>

Page 38: Html5 - short intro

Canvas

<script type="application/javascript"> function draw() { var canvas=document.getElementById('theCanvas');var context=canvas.getContext('2d');context.strokeRect(10, 10, 600, 200);context.font="bold 40px sans-serif";

Page 39: Html5 - short intro

Canvas

<body onload="draw()">

<canvas id="theCanvas" width="800" height="800">

<img src="carrells.gif" />

</canvas>

</body>

Page 40: Html5 - short intro

Canvas

Page 41: Html5 - short intro

Canvas

http://jasoneiseman.com/aall11/canvas.html

Page 42: Html5 - short intro

Canvas - paper.js - available at: http://paperjs.org

Page 43: Html5 - short intro

video

Page 44: Html5 - short intro

Video

browser-native video

Page 45: Html5 - short intro

Video

<video src="movie.mp4" controls width="360" height="240" poster= "placeholder.jpg ">

</video>

Page 46: Html5 - short intro

Video

Firefox

Internet Explorer 9

Safari

Chrome

H.264

H.264

X Ogg

Ogg

X

X

WebM/VP8

WebM/VP8

X

X

X

Page 47: Html5 - short intro

Video

http://jasoneiseman.com/aall11/video.html

Page 48: Html5 - short intro

Video

Page 49: Html5 - short intro

Video

Page 50: Html5 - short intro

Video

<video controls preload width="270" height="186" poster ="poster.png"> <source src="http://jasoneiseman.com/aall11/chain.mp4" type="video/mp4"> <source src="http://jasoneiseman.com/aall11/chain.ogv" type="video/ogg"><object width="270" height="186"> <param name="movie" value="http://jasoneiseman.com/aall11/chain.swf"> <embed src="http://jasoneiseman.com/aall11/chain.swf" width="270" height="186"></object></video>

Page 51: Html5 - short intro

Video

<video width="270" height="186" controls preload poster ="poster.png">

Page 52: Html5 - short intro

Video

<source src="http://jasoneiseman.com/aall11/chain.mp4" type="video/mp4">

<source src="http://jasoneiseman.com/aall11/chain.ogv" type="video/ogg">

Page 53: Html5 - short intro

Video

<object width="270" height="186">

<param name="movie" value="http://jasoneiseman.com/aall11/chain.swf">

<embed src="http://jasoneiseman.com/aall11/chain.swf" width="270" height="186">

</object>

Page 54: Html5 - short intro

Video

Page 55: Html5 - short intro

Video

Page 56: Html5 - short intro

Video

<head> <script type="text/javascript" src="http://html5.kaltura.org/js" > </script> </head><body> <video kentryid="0_swup5zao" kwidgetid="_243342"></video></body>

Page 57: Html5 - short intro

Video

Page 58: Html5 - short intro

Video

http://diveintohtml5.org/video.html

Dive Into HTML5

Page 59: Html5 - short intro

audio

Page 60: Html5 - short intro

Audio

browser-native audio

Page 61: Html5 - short intro

Audio

<audio src="audio.mp3" controls>

</audio>

Page 62: Html5 - short intro

Audio

<audio controls>

<source src="audio.mp3" type= "audio/mpeg"><source src="audio.ogg" type= "audio/ogg">

</audio>

Page 63: Html5 - short intro

Audio

http://jasoneiseman.com/aall11/audio.html

Page 64: Html5 - short intro

advanced functionality

Page 65: Html5 - short intro

Advanced Functionality

geolocation

Page 66: Html5 - short intro

Advanced Functionality

local storage

Page 67: Html5 - short intro

Advanced Functionality

offline web applications

Page 68: Html5 - short intro

Advanced Functionality

browser history

Page 69: Html5 - short intro

further reading

Page 71: Html5 - short intro

http://diveintohtml5.org/

Page 72: Html5 - short intro

http://www.html5rocks.com/en/