HTML5
Jason Eiseman
Librarian for Emerging Technologies
Yale Law School
1990
<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
“Support Existing Content”



HTML5 Design Principles:http://www.w3.org/TR/html-design-principles
World Wide Web Consortium
W3C

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

http://www.w3.org/
Web Hypertext Application
Technology Working Group
WHATWG


    Web Forms 2.0 - 2004


http://www.whatwg.org
WHATWG & W3C

    HTML5 - 2008 - working draft
                    2012? - candidate
                    2022? - standard

http://www.w3.org
So why worry about HTML5
             now?


2022?
Internet
 Firefox      Chrome   Explorer 9   Safari   Opera




           all support HTML5 today

Today?
Today?
Today?
semantics &
page structure
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML:    XHTML 1.0 Strict//EN" "http://www.w3.org/
          TR/xhtml1/DTD/xhtml1-strict.dtd">


HTML5:    <!DOCTYPE html>



DOCTYPE
XHTML:    <script type="text/javascript" src="javascript.js"></script>




HTML5:    <script src="javascript.js"></script>



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




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



Stylesheets
<div id= "header">
                   <div id= "nav">



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




                   <div id= "footer">

Semantics & Page Structure
<header>
                             <nav>

       <article>
         <section>                   <aside>




                        <footer>

Semantics & Page Structure
Microformats


Semantics & Page Structure
forms
Validation


Forms
Required Fields


Forms
Placeholder


Forms
Forms
Datalist


Forms
Forms
Date Pickers


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




Forms
@




Forms
/ .com




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




Forms
rich internet applications
canvas
a drawing surface



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


</canvas>




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";




Canvas
<body onload="draw()">
 <canvas id="theCanvas" width="800" height="800">
 <img src="carrells.gif" />
 </canvas>
</body>


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




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



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

</video>




Video
X      Ogg   WebM/VP8
    Firefox



                       X      Ogg   WebM/VP8
    Chrome


                      H.264    X       X
Internet Explorer 9


                      H.264    X       X
     Safari


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




Video
Video
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>



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




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




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>




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




Video
Video
Dive Into HTML5
   http://diveintohtml5.org/video.html




Video
audio
browser-native audio



Audio
<audio src="audio.mp3" controls>

</audio>




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



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




 Audio
advanced functionality
geolocation



Advanced Functionality
local storage



Advanced Functionality
offline web applications



Advanced Functionality
browser history



Advanced Functionality
further reading
http://www.abookapart.com/products/html5-for-web-designers
http://diveintohtml5.org/
http://www.html5rocks.com/en/
http://jasoneiseman.com/aall11.zip
          jasoneiseman@gmail.com



Further Reading

Html5 - short intro