SlideShare a Scribd company logo
HTML5
HISTORY

           1981   Tim Berners Lee proposes an
                  internet-based hypertext system



proposal


 1981
HISTORY

           1989    Tim Berners Lee writes a memo
                   proposing an internet-based
                   hypertext system


proposal    memo


 1981       1989
HISTORY

           1991             HTML tags first mentioned
                            in PUBLIC!


                    gone
proposal   memo    public


 1981       1989   1991
HISTORY

        1993                1.0




                    gone
proposal   memo    public    1.0


 1981       1989   1991     1993
HISTORY

        1995                2.0




                    gone
proposal   memo    public    1.0   2.0


 1981       1989   1991     1993   1995


                                     1996

                                     CSS 1.0
HISTORY

           1997             4.0




                    gone                    W3C
proposal    memo   public    1.0   2.0      4.0


 1981       1989   1991     1993   1995     1997



                                         1996   1998

                                     CSS 1.0    CSS 1.0
HISTORY

    2000                    XHTML 1.0 Released




                    gone                    W3C        XHTML
proposal   memo    public    1.0   2.0      4.0          1.0


 1981       1989   1991     1993   1995     1997          2000



                                         1996   1998

                                     CSS 1.0    CSS 1.0
HISTORY
                            WHATWG starts work on
   2004                     HTML5 under the name
                            Web Applications 1.0

                    gone                    W3C        XHTML     WHATWG
proposal   memo    public    1.0   2.0      4.0          1.0      HTML5


 1981       1989   1991     1993   1995     1997          2000    2004



                                         1996   1998

                                     CSS 1.0    CSS 1.0
HISTORY

    2006                    “WAIT!” - W3C




                    gone                    W3C        XHTML     WHATWG W3C
proposal   memo    public    1.0   2.0      4.0          1.0      HTML5 wait!


 1981       1989   1991     1993   1995     1997          2000    2004   2006



                                         1996   1998

                                     CSS 1.0    CSS 1.0
HISTORY

    2008                    W3C pushes a working draft
                            for HTML5


                    gone                    W3C        XHTML     WHATWG W3C      W3C
proposal   memo    public    1.0   2.0      4.0          1.0      HTML5 wait!   HTML5


 1981       1989   1991     1993   1995     1997          2000    2004   2006   2008



                                         1996   1998

                                     CSS 1.0    CSS 1.0
HISTORY

    2009                    W3C announces the XHTML2
                            working group will stop work


                    gone                    W3C        XHTML     WHATWG W3C      W3C
proposal   memo    public    1.0   2.0      4.0          1.0      HTML5 wait!   HTML5 XHTML2


 1981       1989   1991     1993   1995     1997          2000    2004   2006   2008   2009



                                         1996   1998

                                     CSS 1.0    CSS 1.0
HISTORY

           2012             HTML5 Candidate Recommendation




                    gone                    W3C        XHTML     WHATWG W3C      W3C          HTML5
proposal    memo   public    1.0   2.0      4.0          1.0      HTML5 wait!   HTML5 XHTML2 candidate


 1981       1989   1991     1993   1995     1997          2000    2004   2006   2008   2009     2012



                                         1996   1998

                                     CSS 1.0    CSS 1.0
HISTORY

        2022               HTML5 Proposed Recommendation




                   gone                    W3C        XHTML     WHATWG W3C      W3C          HTML5       HTML5
proposal   memo   public    1.0   2.0      4.0          1.0      HTML5 wait!   HTML5 XHTML2 candidate   proposed


 1981      1989   1991     1993   1995     1997          2000    2004   2006   2008     2009   2012       2022



                                        1996   1998
                                                                                 CSS3
                                    CSS 1.0    CSS 1.0
HTML5
the content layer
New Doctype
NEW
<?DOCTYPE html>

OLD
<?DOCTYPE html PUBLIC “-//W3C//DTD
XHTML 1.1//EN” “h p://www.w3.org/TR/xhtml11/
DTD/xhtml11.dtd”>
Character Set
NEW
<meta charset="utf-8" />

OLD
<meta h p-equiv="Content-Type"
content="text/html; charset=utf-8" />
Javascript Embed
NEW
<script> </script>

OLD
<script type="text/javascript"> </script>
Styles Embed
NEW
<style> </style>

OLD
<style type="text/css"></script>
Stylesheet Linking
NEW
<link rel="stylesheet" href="file.css" />

OLD
<link rel="stylesheet" href="file.css"
type="text/css" media="all" />
Tag Etique e
<img src=”../img/mjackson.jpg” />   ok

<img src=../img/mjackson.jpg />     ok

<IMG SRC=../img/mjackson.jpg />     ok

<img src=../img/mjackson.jpg >      ok

<br /> or <br>                      ok

<input /> or <input>                ok
Block-Level Links
You can now wrap links   <li>
around block-level        <a href="page.html">
elements, rather than        <img src="pic.jpg">
having to create links
around every element         <h3>Title</h3>
inside the block             <p>Text</p>
element.                  </a>
                         </li>
“drop it like
Removed Tags       it’s hot”


big         applet
center      dir
u           basefont
            frame
s, strike   frameset
font        noframes
acronym
New Tags
Provides new               <HEADER>
semantic vocabulary
for parts of a page          <NAV>
previously served by
DIVs with ID and
Class a ributes.       <SECTION>
IE requires some
workarounds using                     <ASIDE>
JavaScript to make     <ARTICLE>
these elements work.



                           <FOOTER>
<figure>
Allows for                <FIGURE>
associating captions
with embedded
content, including
videos, audio,
pullquotes, or
images.
                          CONTENT
                       (IMG,VIDEO,ETC.)



                          <LEGEND>
<video>
CODECS/CONTAINER                             IE        FIREFOX          SAFARI CHROME OPERA                         IPHONE ANDROID

Theora+Vorbis+Ogg                           -              3.5+           -             5.0+           10.5+            -             -
H.264+AAC+MP4                               9.0+           -              3.0+          -              -              3.0+           2.0+
WebM                                        9.0+           4.0+           -             6.0+           10.6+          -              2.3+

<video id="movie" width="320" height="240" preload controls>
 <source src="pr6.webm" type='video/webm; codecs="vp8, vorbis"' />
 <source src="pr6.ogv" type='video/ogg; codecs="theora, vorbis"' />
 <source src="pr6.mp4" />
 <object width="320" height="240" type="application/x-shockwave-flash"
  data="flowplayer-3.2.1.swf">
  <param name="movie" value="flowplayer-3.2.1.swf" />
  <param name="allowfullscreen" value="true" />
  <param name="flashvars" value='config={"clip": {"url": "h p://wearehugh.com/dih5/pr6.mp4", "autoPlay":false, "autoBu ering":true}}' />
  <p>Download video as <a href="pr6.mp4">MP4</a>, <a href="pr6.webm">WebM</a>, or <a href="pr6.ogv">Ogg</a>.</p>
 </object>
</video>
<script>
 var v = document.getElementById("movie");
 v.onclick = function() {
  if (v.paused) {
    v.play();
  } else {
    v.pause();
  }
 };
</script>
<audio>
BROWSER             OGG VORBIS            MP3         WAV
Firefox 3.6+               yes            -            yes
Safari 5+                  -              yes          yes
Chrome 6                   yes            yes          -
Opera 10.5+                yes            -            yes
IE 9                       -              yes          yes


ATTRIBUTES
src            url               <audio src="bieberfever.ogg"></audio>
autoplay       boolean           <audio src="bieberfever.ogg" autoplay></audio>
loop           boolean           <audio src="bieberfever.ogg" loop></audio>
controls       boolean           <audio src="bieberfever.ogg" controls></audio>
preload        none/auto         <audio src="bieberfever.ogg" preload="auto"></audio>
<audio>
<audio controls preload="none">
  <source src="bieberfever.ogg" type="audio/ogg">
  <source src="bieberfever.mp3" type="audio/mpeg">
  <object type="application/x-shockwave...
</audio
<meter>
Represents a scalar measurement within a
known range...

<meter> 2 out of 10 </meter>

<p>Your score is: <meter min="0" max="10">2 out of 10</meter></p>

<p>Your score is: <meter value="91" min="0" max="100" low="40"
high="90" optimum="100">A+</meter></p>
<progress>
Defines work-in-progress. Use it to display the
progress of a time consuming function in Javascript

<progress>
  <span>76</span>%
</progress>


<progress max="50" value="23">
  <span>23</span> of <span>50</span>
</progress>
<time>
Defines a time or a date, or both.


<p>We scrum it up at <time>9:00</time> every morning.</p>

<time datetime="2011-03-1709:00" pubdate>9:00</time>
<mark>
Defines marked or highlighted text.


<p>Search Results for <mark>mildred</mark></p>



Some Good Uses
Highlighting search terms on a page
Directing a ention to a word or phrase
Adding emphasis
WEB FORMS!
New A ributes

required
autocomplete
placeholder
autofocus
required
<input type="text" required >


The required a ribute specifies that an input
field must be filled out before submi ing.
autocomplete
<input type="text" autocomplete >


The autocomplete a ribute specifies that the
form or input field should have an autocomplete
function. Tells the browser to allow the field to
be autocompleted or not.
placeholder
<input type="text" placeholder="Search..." >


The placeholder a ribute provides a hint that
describes the expected value of an input field.
autofocus
<input type="text" autofocus >


The autofocus a ribute specifies that a field
should automatically get focus when a page is
loaded.
WEB FORMS (cont)
 Input Types

 search        number
 email         range
 url           date
 tel           color
search
<input type="search">


The search field behaves like
a regular text field. Some
browsers add special styling
and/or functionality for
clearing.


 + mobile
email
<input type="email">


Used for input fields that should
contain an e-mail address.




 + mobile
url
<input type="url">


Used for input fields that should
contain a URL address.




 + mobile
number
<input type="number">


used for input fields that should
contain a numeric value.




 + mobile
number
<input type="number">


used for input fields that should
contain a numeric value.
<input type="number"
    min="0"
    max="10"
    step="2"
    value="6">

  + mobile
tel
<input type="tel">


Used for input fields that should
contain numbers only




 + mobile
range
<input type="range"
    min="0"
    max="10"
    step="2"
    value="6">

Used for input fields that should contain
a value from a range of numbers.


 + mobile
date pickers
<input type="date">
<input type="month">
<input type="week">
<input type="time">
<input type="datetime">   (utc time)


<input type="datetime-local">          (local time)
color
<input type="color">


Used for input fields that
should contain a color
NEW API’s

Drag and Drop              Canvas
Cross-Document Messaging   SVG
Web Storage
O line Web Apps
drag’n drop
Allows objects (images and links, by
default) to be dragged and then
dropped onto a target.


h p://instantsprite.com
cross doc messaging
Cross Document Messaging
allows documents of
di erent domains to
communicate.

Sending document can call
postMessage() and
receiving document listens
for a ‘message’ event.
web storage
“The sessionStorage DOM a ribute stores session
data for a single window, like cookies on crack.”

<input type="checkbox"
  onchange="
  localStorage.insurance=checked
" />



           + mobile
o line web apps
Allows the client to    <html manifest="/cache.manifest">
refer directly to its
                        CACHE MANIFEST
cache for certain
                        index.html
resources even          help.html
while o line.           style/default.css
                        images/logo.png
Resources under         images/background.png
"network" are
never cached            NETWORK:
                        server.cgi
            + mobile
canvas                       svg     scalable vector graphics




Canvas is like making a      Making layers that retain
flat drawing without         distinctive shapes. Like
layers. Like a whiteboard.   construction paper.




           + mobile                        + mobile
geolocation
Allows users to share their location for
location-aware services.

Some Uses
  Show users position on a map
  Tag content (photos/sound/video)
  Turn-by-turn navigation
  Alert users of nearby points of interest
  Social networking

Users must be allowed to opt-in to location sharing

       + mobile
CAN WE EVEN USE
  THIS STUFF?
“The future is already here. It’s just
not very evenly distributed”

                      William Gibson
PROGRESSIVE
DEGRAHANCEMENT
graceful degradation & progressive enhancement


         start awesome              start with necessary


   strip features/fallbacks for   enhance for more capable
         lesser browsers                 browsers
implementations
making the magic happen


Some CSS
HTML5 Shiv
Modernizr
Some CSS
Sectioning elements need a line break:

header, nav, section,
article, aside, footer { display: block }
HTML5 Shiv
In IE8- new tags are recognized so they
need to be created.

document.createElement(‘header’);
document.createElement(‘section’);
etc.

HTML5 Shiv determines browser version
and creates the elements for us if needed.
Modernizr.js
O ers a 3.7k javascript file you can add to
your project.

Includes the HTML5 shiv
Uses feature detection to easily control fallbacks
Works with both HTML5 and CSS3 elements
CSS3
the presentation layer
     coming soon
Sources
Because I didn’t make this stu up.

Up to Speed on HTML5 & CSS3    M.Jackson Wilkinson and Jason Garber
HTML5 the 30,000’ View         Peter Lubbers
Echo HTML5                     John Dyer and Nathan Smith
In Control 2010 HTML5          Christopher Schmi
The Future of the Web: HTML5   Derek Bender
Semantics of HTML5             Jesh Barlow
Dive into HTML5                Mark Pilgrim
W3Schools.com
HTML5 Doctor                   h p://html5doctor.com/about/
HTML5 for Web Designers        Jeremy Keith

More Related Content

PPTX
Introduction to CSS
PPTX
Call by value and call by reference in java
PPTX
PDF
Class Intro / HTML Basics
PDF
jQuery for beginners
PPTX
Css backgrounds
PPT
Css lecture notes
PPTX
Lab #2: Introduction to Javascript
Introduction to CSS
Call by value and call by reference in java
Class Intro / HTML Basics
jQuery for beginners
Css backgrounds
Css lecture notes
Lab #2: Introduction to Javascript

What's hot (20)

PDF
Object-oriented Programming-with C#
PPT
PHP - Introduction to PHP Fundamentals
PDF
Html / CSS Presentation
PPTX
Beginning Python Programming
PPTX
Java string handling
PDF
CSS Selectors
PPTX
Introduction to HTML
PPT
JavaScript Tutorial
PDF
CSS: Introduction
PDF
Django Introduction & Tutorial
PDF
TypeScript
PPTX
C++ presentation
PPT
Object Oriented Programming Concepts using Java
PPSX
HTML + CSS Examples
PPT
Introduction to Cascading Style Sheets (CSS)
PPTX
How to download and install Python - lesson 2
PPT
Cascading Style Sheets (CSS) help
PPTX
Cascading style sheets (CSS)
PDF
Html for beginners
Object-oriented Programming-with C#
PHP - Introduction to PHP Fundamentals
Html / CSS Presentation
Beginning Python Programming
Java string handling
CSS Selectors
Introduction to HTML
JavaScript Tutorial
CSS: Introduction
Django Introduction & Tutorial
TypeScript
C++ presentation
Object Oriented Programming Concepts using Java
HTML + CSS Examples
Introduction to Cascading Style Sheets (CSS)
How to download and install Python - lesson 2
Cascading Style Sheets (CSS) help
Cascading style sheets (CSS)
Html for beginners
Ad

Viewers also liked (7)

PDF
使用Bigpipe提升浏览速度
PPTX
DOCX
Pure real natural
PDF
春雨路演
PPTX
目录结构规范
KEY
独爽不如众乐
PPTX
使用kslite支持第三方内容开发
使用Bigpipe提升浏览速度
Pure real natural
春雨路演
目录结构规范
独爽不如众乐
使用kslite支持第三方内容开发
Ad

Similar to HTML5 (20)

KEY
Html5 Primer
KEY
The History of HTML5
KEY
KEY
Everything you need to know about HTML5 in 15 min
PDF
HTML5 어디까지 왔나?
KEY
20100414 kgoon introducing_html5
KEY
HTML5 를 이용한 하이브리드앱 제작
PDF
夜宴6期《Past, Present, and Future》
PDF
Banquet 06
PPT
1. introduction to html5
PDF
Voice Browsing And Multimodal Interaction In 2009
PPT
Introduction to HTML5
PPT
HTML 5 Complete Reference
PDF
What the heck is HTML 5?
PDF
Web Standards
PDF
Web技術の現状と将来 (Open Source Conference 2011 Tokyo Spring)
PPT
Introduction to html5
PPT
Introduction to html55
Html5 Primer
The History of HTML5
Everything you need to know about HTML5 in 15 min
HTML5 어디까지 왔나?
20100414 kgoon introducing_html5
HTML5 를 이용한 하이브리드앱 제작
夜宴6期《Past, Present, and Future》
Banquet 06
1. introduction to html5
Voice Browsing And Multimodal Interaction In 2009
Introduction to HTML5
HTML 5 Complete Reference
What the heck is HTML 5?
Web Standards
Web技術の現状と将来 (Open Source Conference 2011 Tokyo Spring)
Introduction to html5
Introduction to html55

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Encapsulation theory and applications.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Cloud computing and distributed systems.
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Encapsulation theory and applications.pdf
Programs and apps: productivity, graphics, security and other tools
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Cloud computing and distributed systems.
Reach Out and Touch Someone: Haptics and Empathic Computing
Understanding_Digital_Forensics_Presentation.pptx
Review of recent advances in non-invasive hemoglobin estimation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Encapsulation_ Review paper, used for researhc scholars
Chapter 3 Spatial Domain Image Processing.pdf

HTML5

  • 2. HISTORY 1981 Tim Berners Lee proposes an internet-based hypertext system proposal 1981
  • 3. HISTORY 1989 Tim Berners Lee writes a memo proposing an internet-based hypertext system proposal memo 1981 1989
  • 4. HISTORY 1991 HTML tags first mentioned in PUBLIC! gone proposal memo public 1981 1989 1991
  • 5. HISTORY 1993 1.0 gone proposal memo public 1.0 1981 1989 1991 1993
  • 6. HISTORY 1995 2.0 gone proposal memo public 1.0 2.0 1981 1989 1991 1993 1995 1996 CSS 1.0
  • 7. HISTORY 1997 4.0 gone W3C proposal memo public 1.0 2.0 4.0 1981 1989 1991 1993 1995 1997 1996 1998 CSS 1.0 CSS 1.0
  • 8. HISTORY 2000 XHTML 1.0 Released gone W3C XHTML proposal memo public 1.0 2.0 4.0 1.0 1981 1989 1991 1993 1995 1997 2000 1996 1998 CSS 1.0 CSS 1.0
  • 9. HISTORY WHATWG starts work on 2004 HTML5 under the name Web Applications 1.0 gone W3C XHTML WHATWG proposal memo public 1.0 2.0 4.0 1.0 HTML5 1981 1989 1991 1993 1995 1997 2000 2004 1996 1998 CSS 1.0 CSS 1.0
  • 10. HISTORY 2006 “WAIT!” - W3C gone W3C XHTML WHATWG W3C proposal memo public 1.0 2.0 4.0 1.0 HTML5 wait! 1981 1989 1991 1993 1995 1997 2000 2004 2006 1996 1998 CSS 1.0 CSS 1.0
  • 11. HISTORY 2008 W3C pushes a working draft for HTML5 gone W3C XHTML WHATWG W3C W3C proposal memo public 1.0 2.0 4.0 1.0 HTML5 wait! HTML5 1981 1989 1991 1993 1995 1997 2000 2004 2006 2008 1996 1998 CSS 1.0 CSS 1.0
  • 12. HISTORY 2009 W3C announces the XHTML2 working group will stop work gone W3C XHTML WHATWG W3C W3C proposal memo public 1.0 2.0 4.0 1.0 HTML5 wait! HTML5 XHTML2 1981 1989 1991 1993 1995 1997 2000 2004 2006 2008 2009 1996 1998 CSS 1.0 CSS 1.0
  • 13. HISTORY 2012 HTML5 Candidate Recommendation gone W3C XHTML WHATWG W3C W3C HTML5 proposal memo public 1.0 2.0 4.0 1.0 HTML5 wait! HTML5 XHTML2 candidate 1981 1989 1991 1993 1995 1997 2000 2004 2006 2008 2009 2012 1996 1998 CSS 1.0 CSS 1.0
  • 14. HISTORY 2022 HTML5 Proposed Recommendation gone W3C XHTML WHATWG W3C W3C HTML5 HTML5 proposal memo public 1.0 2.0 4.0 1.0 HTML5 wait! HTML5 XHTML2 candidate proposed 1981 1989 1991 1993 1995 1997 2000 2004 2006 2008 2009 2012 2022 1996 1998 CSS3 CSS 1.0 CSS 1.0
  • 16. New Doctype NEW <?DOCTYPE html> OLD <?DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “h p://www.w3.org/TR/xhtml11/ DTD/xhtml11.dtd”>
  • 17. Character Set NEW <meta charset="utf-8" /> OLD <meta h p-equiv="Content-Type" content="text/html; charset=utf-8" />
  • 18. Javascript Embed NEW <script> </script> OLD <script type="text/javascript"> </script>
  • 19. Styles Embed NEW <style> </style> OLD <style type="text/css"></script>
  • 20. Stylesheet Linking NEW <link rel="stylesheet" href="file.css" /> OLD <link rel="stylesheet" href="file.css" type="text/css" media="all" />
  • 21. Tag Etique e <img src=”../img/mjackson.jpg” /> ok <img src=../img/mjackson.jpg /> ok <IMG SRC=../img/mjackson.jpg /> ok <img src=../img/mjackson.jpg > ok <br /> or <br> ok <input /> or <input> ok
  • 22. Block-Level Links You can now wrap links <li> around block-level <a href="page.html"> elements, rather than <img src="pic.jpg"> having to create links around every element <h3>Title</h3> inside the block <p>Text</p> element. </a> </li>
  • 23. “drop it like Removed Tags it’s hot” big applet center dir u basefont frame s, strike frameset font noframes acronym
  • 24. New Tags Provides new <HEADER> semantic vocabulary for parts of a page <NAV> previously served by DIVs with ID and Class a ributes. <SECTION> IE requires some workarounds using <ASIDE> JavaScript to make <ARTICLE> these elements work. <FOOTER>
  • 25. <figure> Allows for <FIGURE> associating captions with embedded content, including videos, audio, pullquotes, or images. CONTENT (IMG,VIDEO,ETC.) <LEGEND>
  • 26. <video> CODECS/CONTAINER IE FIREFOX SAFARI CHROME OPERA IPHONE ANDROID Theora+Vorbis+Ogg - 3.5+ - 5.0+ 10.5+ - - H.264+AAC+MP4 9.0+ - 3.0+ - - 3.0+ 2.0+ WebM 9.0+ 4.0+ - 6.0+ 10.6+ - 2.3+ <video id="movie" width="320" height="240" preload controls> <source src="pr6.webm" type='video/webm; codecs="vp8, vorbis"' /> <source src="pr6.ogv" type='video/ogg; codecs="theora, vorbis"' /> <source src="pr6.mp4" /> <object width="320" height="240" type="application/x-shockwave-flash" data="flowplayer-3.2.1.swf"> <param name="movie" value="flowplayer-3.2.1.swf" /> <param name="allowfullscreen" value="true" /> <param name="flashvars" value='config={"clip": {"url": "h p://wearehugh.com/dih5/pr6.mp4", "autoPlay":false, "autoBu ering":true}}' /> <p>Download video as <a href="pr6.mp4">MP4</a>, <a href="pr6.webm">WebM</a>, or <a href="pr6.ogv">Ogg</a>.</p> </object> </video> <script> var v = document.getElementById("movie"); v.onclick = function() { if (v.paused) { v.play(); } else { v.pause(); } }; </script>
  • 27. <audio> BROWSER OGG VORBIS MP3 WAV Firefox 3.6+ yes - yes Safari 5+ - yes yes Chrome 6 yes yes - Opera 10.5+ yes - yes IE 9 - yes yes ATTRIBUTES src url <audio src="bieberfever.ogg"></audio> autoplay boolean <audio src="bieberfever.ogg" autoplay></audio> loop boolean <audio src="bieberfever.ogg" loop></audio> controls boolean <audio src="bieberfever.ogg" controls></audio> preload none/auto <audio src="bieberfever.ogg" preload="auto"></audio>
  • 28. <audio> <audio controls preload="none"> <source src="bieberfever.ogg" type="audio/ogg"> <source src="bieberfever.mp3" type="audio/mpeg"> <object type="application/x-shockwave... </audio
  • 29. <meter> Represents a scalar measurement within a known range... <meter> 2 out of 10 </meter> <p>Your score is: <meter min="0" max="10">2 out of 10</meter></p> <p>Your score is: <meter value="91" min="0" max="100" low="40" high="90" optimum="100">A+</meter></p>
  • 30. <progress> Defines work-in-progress. Use it to display the progress of a time consuming function in Javascript <progress> <span>76</span>% </progress> <progress max="50" value="23"> <span>23</span> of <span>50</span> </progress>
  • 31. <time> Defines a time or a date, or both. <p>We scrum it up at <time>9:00</time> every morning.</p> <time datetime="2011-03-1709:00" pubdate>9:00</time>
  • 32. <mark> Defines marked or highlighted text. <p>Search Results for <mark>mildred</mark></p> Some Good Uses Highlighting search terms on a page Directing a ention to a word or phrase Adding emphasis
  • 33. WEB FORMS! New A ributes required autocomplete placeholder autofocus
  • 34. required <input type="text" required > The required a ribute specifies that an input field must be filled out before submi ing.
  • 35. autocomplete <input type="text" autocomplete > The autocomplete a ribute specifies that the form or input field should have an autocomplete function. Tells the browser to allow the field to be autocompleted or not.
  • 36. placeholder <input type="text" placeholder="Search..." > The placeholder a ribute provides a hint that describes the expected value of an input field.
  • 37. autofocus <input type="text" autofocus > The autofocus a ribute specifies that a field should automatically get focus when a page is loaded.
  • 38. WEB FORMS (cont) Input Types search number email range url date tel color
  • 39. search <input type="search"> The search field behaves like a regular text field. Some browsers add special styling and/or functionality for clearing. + mobile
  • 40. email <input type="email"> Used for input fields that should contain an e-mail address. + mobile
  • 41. url <input type="url"> Used for input fields that should contain a URL address. + mobile
  • 42. number <input type="number"> used for input fields that should contain a numeric value. + mobile
  • 43. number <input type="number"> used for input fields that should contain a numeric value. <input type="number" min="0" max="10" step="2" value="6"> + mobile
  • 44. tel <input type="tel"> Used for input fields that should contain numbers only + mobile
  • 45. range <input type="range" min="0" max="10" step="2" value="6"> Used for input fields that should contain a value from a range of numbers. + mobile
  • 46. date pickers <input type="date"> <input type="month"> <input type="week"> <input type="time"> <input type="datetime"> (utc time) <input type="datetime-local"> (local time)
  • 47. color <input type="color"> Used for input fields that should contain a color
  • 48. NEW API’s Drag and Drop Canvas Cross-Document Messaging SVG Web Storage O line Web Apps
  • 49. drag’n drop Allows objects (images and links, by default) to be dragged and then dropped onto a target. h p://instantsprite.com
  • 50. cross doc messaging Cross Document Messaging allows documents of di erent domains to communicate. Sending document can call postMessage() and receiving document listens for a ‘message’ event.
  • 51. web storage “The sessionStorage DOM a ribute stores session data for a single window, like cookies on crack.” <input type="checkbox" onchange=" localStorage.insurance=checked " /> + mobile
  • 52. o line web apps Allows the client to <html manifest="/cache.manifest"> refer directly to its CACHE MANIFEST cache for certain index.html resources even help.html while o line. style/default.css images/logo.png Resources under images/background.png "network" are never cached NETWORK: server.cgi + mobile
  • 53. canvas svg scalable vector graphics Canvas is like making a Making layers that retain flat drawing without distinctive shapes. Like layers. Like a whiteboard. construction paper. + mobile + mobile
  • 54. geolocation Allows users to share their location for location-aware services. Some Uses Show users position on a map Tag content (photos/sound/video) Turn-by-turn navigation Alert users of nearby points of interest Social networking Users must be allowed to opt-in to location sharing + mobile
  • 55. CAN WE EVEN USE THIS STUFF?
  • 56. “The future is already here. It’s just not very evenly distributed” William Gibson
  • 57. PROGRESSIVE DEGRAHANCEMENT graceful degradation & progressive enhancement start awesome start with necessary strip features/fallbacks for enhance for more capable lesser browsers browsers
  • 58. implementations making the magic happen Some CSS HTML5 Shiv Modernizr
  • 59. Some CSS Sectioning elements need a line break: header, nav, section, article, aside, footer { display: block }
  • 60. HTML5 Shiv In IE8- new tags are recognized so they need to be created. document.createElement(‘header’); document.createElement(‘section’); etc. HTML5 Shiv determines browser version and creates the elements for us if needed.
  • 61. Modernizr.js O ers a 3.7k javascript file you can add to your project. Includes the HTML5 shiv Uses feature detection to easily control fallbacks Works with both HTML5 and CSS3 elements
  • 63. Sources Because I didn’t make this stu up. Up to Speed on HTML5 & CSS3 M.Jackson Wilkinson and Jason Garber HTML5 the 30,000’ View Peter Lubbers Echo HTML5 John Dyer and Nathan Smith In Control 2010 HTML5 Christopher Schmi The Future of the Web: HTML5 Derek Bender Semantics of HTML5 Jesh Barlow Dive into HTML5 Mark Pilgrim W3Schools.com HTML5 Doctor h p://html5doctor.com/about/ HTML5 for Web Designers Jeremy Keith