SlideShare una empresa de Scribd logo
1 de 80
Descargar para leer sin conexión
HTML5
Why aren’t you using it?



                           Brad Touesnard
                              http://bradt.ca
                                     @bradt
You are using it

 “HTML5 isn’t a completely new language created from
 scratch. It’s an evolutionary rather than revolutionary
 change in the ongoing story of markup. If you are
 currently creating websites with any version of HTML,
 you’re already using HTML5.”

               - Jeremy Keith, HTML5 for Web Designers
What’s new in HTML5?

New Structural Semantic Elements   Multiple File Uploading
Native Audio & Video               Document Editing
New Form Controls                  Cross-Document Messaging
2D & 3D Graphics                   Browser History Management
Microdata                          Web Storage
Drag-and-Drop                      Web Workers
New Structural Semantic Elements
<div id=”header”>




                 <div id=”content”>




<div id=”sidebar”>
<header>




           <section>




<aside>
<nav>
<nav>
        <article>
                         <section>          <section>   <aside>




<nav>

                    <article>                    <section>
        <section>               <section>


                    <article>
<nav>                                             <aside>
<header>
<h1>

<p>

<p>
<h1>
<article>


<article>




<article>
<h1>
 <p>
<h1>
<p>
<h1>
<p>
Document Outline
New York Times
 China Cracks Down on
 Illegal Rare Earth Mines
 The Snowstorm
   Transit Update
   Stir Crazy
   Snow Removal
HTML5 Document Outliner


 http://gsnedders.html5.org/outliner/
Other semantic elements

<hgroup>
<footer>
<time>
<mark>
<figure> / <figcaption>
Using These New Elements Today
Ye Olde Doctype

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Ye New Doctype

<!DOCTYPE html>
Go Block
article, section, aside, hgroup, nav, header,
footer, figure, figcaption {
  display: block;
}
Getting Internet Explorer to behave
<head>

...

<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com
  /svn/trunk/html5.js"></script>
<![endif]-->

...

</head>
Why today?




       Om nom nom!
Native Video
The Land Before Flash
Criticisms of Flash
 Browser slowness & crashing
 Poor video performance
 (better in 10.1 with hardware acceleration)
 No standardized video API
 No semantics
Ideally Simple

<video src="sneezing-panda.webm"
   width="320" height="240"></video>
Browser Support Today




         http://diveintohtml5.org/video.html#what-works
Browser Support Soon




         http://diveintohtml5.org/video.html#what-works
Unfortunately Complicated
<video width="320" height="240" preload controls>
  <source src="panda.mp4" />
  <source src="panda.webm" type='video/webm; codecs="vp8, vorbis"' />
  <source src="panda.ogv" type='video/ogg; codecs="theora, vorbis"' />
  <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": "panda.mp4",
      "autoPlay":false, "autoBuffering":true}}' />
    <p>Download video as <a href="panda.mp4">MP4</a>,
      <a href="panda.webm">WebM</a>, or <a href="panda.ogv">Ogg</a>.</p>
  </object>
</video>
Articles


 “Dive into HTML5: Video on the Web” - Mark Pilgrim
 http://diveintohtml5.org/video.html
 “Flash Player: CPU Hog or Hot Tamale? It Depends.”
 http://www.streaminglearningcenter.com/articles/flash-player-cpu-hog-or-
 hot-tamale-it-depends-.html
Native Audio
The Short & Sweet

<audio src="bigwebshow.ogg" controls
  preload="auto" autobuffer></audio>
Browser Support




   http://html5doctor.com/native-audio-in-the-browser/
The Long & Ugly
<audio controls preload="auto" autobuffer>
  <source src="bigwebshow.mp3" />
  <source src="bigwebshow.ogg" />
  <object width="300" height="20" 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": "bigwebshow.mp3",
      "autoPlay":false, "autoBuffering":true}}' />
    <p>Download podcast as <a href="bigwebshow.mp3">MP3</a>,
      or <a href="bigwebshow.ogg">Ogg</a>.</p>
  </object>
</audio>
Articles

 “The State of HTML5 Audio” - Scott Schiller
  http://24ways.org/2010/the-state-of-html5-audio
 “HTML5 Audio Unplugged” - Richard Shepherd
  http://thinkvitamin.com/code/html5-audio-unplugged/
 “Native Audio in the Browser” - Mark Boas
  http://html5doctor.com/native-audio-in-the-browser/
2D & 3D Graphics
Technologies

<canvas id="game" width="500" height="500">
</canvas>
canvas.getContext(‘2d’)
WebGL (managed by Khronos Group)
canvas.getContext(‘experimental-webgl’)
Links
 Google Pacman                           Biolab Disaster
 http://google.com/pacman/               http://playbiolab.com/
 Wolfenstein 3D                          Quake II WebGL port
 http://www.nihilogic.dk/labs/wolf/      http://code.google.com/p/quake2-gwt-port/

 Arcade Fire “The Wilderness             True 8-bit Color Cycling with
 Downtown”                               HTML5
 http://www.thewildernessdowntown.com/   http://www.effectgames.com/demos/
                                         canvascycle/?sound=0
New Form Controls
Placeholder Text


<input type="text"
  placeholder="Enter search text here">
Autofocus


<input type="text" autofocus>
Email Address
<input type="email">
Web Address

<input type="url">
Number
<input type="number"
  min="0" max="10" step="2" value="6">
Range

<input type="range"
  min="0" max="10" step="2" value="6">
Date & Time

<input   type="date">
<input   type="month">
<input   type="week">
<input   type="time">
<input   type="datetime">         Opera 9


<input   type="datetime-local">
Search

<input type="search">
Others

<input type="color">
<input type="tel">
Upload Multiple Files

<input type="file"
  name="photos[]" multiple>
Form Validation
 Email address
 Web address
 Required
 <input type="text" required>
Articles


 “multiple file input in Firefox 3.6” - Paul Rouget
  http://hacks.mozilla.org/2009/12/multiple-file-input-in-firefox-3-6/
 “Dive into HTML5: A Form of Madness” - Mark Pilgrim
  http://diveintohtml5.org/forms.html
What HTML5 is not
What HTML5 is not...

CSS                Web Storage
SVG                Turducken
WOFF
Web Workers
Geolocation
God
http://www.apple.com/html5/
http://slides.html5rocks.com
Boooooo!
http://www.w3.org/html/logo/
“It’s as if the government suddenly
      announced that from today, all
 vegetables will be called potatoes, just
because some vegetables are potatoes.”
                      - Bobbie Johnson, GigaOM
http://www.iscss3partofhtml5.com/
http://isgeolocationpartofhtml5.com/
“I wish I could put ‘HTML5’ in a sentence
  and it would mean version 5 of HTML.
         That would make sense.”
                                     - Me
Buzzword-o-matic


        Ajax
       Web 2.0
       HTML5
Buzzword-o-matic


             Web5
Web5 Geolocation
Browser Support
Getting Location


if (!!navigator.geolocation) {
    var geo = navigator.geolocation;
    geo.getCurrentPosition(displayMap);
}
Using Location


function displayMap(position) {
    var latitude = position.coords.latitude;
    var longitude = position.coords.longitude;
    // embed a map
}
Articles


 “You Are Here (and so is everybody else)” - Mark Pilgrim
  http://diveintohtml5.org/geolocation.html
 Geolocation demo
 http://html5demos.com/geo
Online Resources
Modernizr - Faruk Ates, Paul Irish   HTML5 Doctor - Bruce Lawson,
http://www.modernizr.com/            Remy Sharpe, etc
                                     http://html5doctor.com/
HTML5 Boilerplate - Paul Irish
http://html5boilerplate.com/         Quirks Mode
                                     http://www.quirksmode.org/
W3Schools HTML5 Reference
http://www.w3schools.com/html5/
html5_reference.asp
Books

HTML5 for Web Designers
Jeremy Keith
Introducing HTML5
Bruce Lawson and Remy Sharp
HTML5: Up and Running
Mark Pilrim
Thank You


            Brad Touesnard
               http://bradt.ca

Más contenido relacionado

La actualidad más candente

[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
Christopher Schmitt
 

La actualidad más candente (20)

Using HTML5 sensibly
Using HTML5 sensiblyUsing HTML5 sensibly
Using HTML5 sensibly
 
Multimedia on the web - HTML5 video and audio
Multimedia on the web - HTML5 video and audioMultimedia on the web - HTML5 video and audio
Multimedia on the web - HTML5 video and audio
 
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
 
[In Control 2010] HTML5
[In Control 2010] HTML5[In Control 2010] HTML5
[In Control 2010] HTML5
 
HTML5 JS APIs
HTML5 JS APIsHTML5 JS APIs
HTML5 JS APIs
 
High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5
 
Don't make me wait! or Building High-Performance Web Applications
Don't make me wait! or Building High-Performance Web ApplicationsDon't make me wait! or Building High-Performance Web Applications
Don't make me wait! or Building High-Performance Web Applications
 
Build Better Responsive websites. Hrvoje Jurišić
Build Better Responsive websites. Hrvoje JurišićBuild Better Responsive websites. Hrvoje Jurišić
Build Better Responsive websites. Hrvoje Jurišić
 
Real World Web Standards
Real World Web StandardsReal World Web Standards
Real World Web Standards
 
Mobile Web Speed Bumps
Mobile Web Speed BumpsMobile Web Speed Bumps
Mobile Web Speed Bumps
 
HTML5 Design
HTML5 DesignHTML5 Design
HTML5 Design
 
International Site Speed Tweaks - ISS 2017 Barcelona
International Site Speed Tweaks - ISS 2017 BarcelonaInternational Site Speed Tweaks - ISS 2017 Barcelona
International Site Speed Tweaks - ISS 2017 Barcelona
 
HTTP 2.0 - Web Unleashed 2015
HTTP 2.0 - Web Unleashed 2015HTTP 2.0 - Web Unleashed 2015
HTTP 2.0 - Web Unleashed 2015
 
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
 
HTML5 workshop, part 1
HTML5 workshop, part 1HTML5 workshop, part 1
HTML5 workshop, part 1
 
HTML5: An Overview
HTML5: An OverviewHTML5: An Overview
HTML5: An Overview
 
The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013
 
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
10 Tips to make your Website lightning-fast - SMX Stockholm 201210 Tips to make your Website lightning-fast - SMX Stockholm 2012
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
 
How fast are we going now?
How fast are we going now?How fast are we going now?
How fast are we going now?
 
How I learned to stop worrying and love the .htaccess file
How I learned to stop worrying and love the .htaccess fileHow I learned to stop worrying and love the .htaccess file
How I learned to stop worrying and love the .htaccess file
 

Similar a HTML5

HTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - AltranHTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - Altran
Robert Nyman
 
WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)
Shumpei Shiraishi
 
Webware - from Document to Operating System
Webware - from Document to Operating System Webware - from Document to Operating System
Webware - from Document to Operating System
Channy Yun
 
[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web Design[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web Design
Christopher Schmitt
 

Similar a HTML5 (20)

Html5 drupal7 with mandakini kumari(1)
Html5 drupal7 with mandakini kumari(1)Html5 drupal7 with mandakini kumari(1)
Html5 drupal7 with mandakini kumari(1)
 
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるIt is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
 
HTML 5 - Overview
HTML 5 - OverviewHTML 5 - Overview
HTML 5 - Overview
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
 
HTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - AltranHTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - Altran
 
Html5
Html5Html5
Html5
 
Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~
 
Speak The Web: The HTML5 Experiments
Speak The Web: The HTML5 ExperimentsSpeak The Web: The HTML5 Experiments
Speak The Web: The HTML5 Experiments
 
The Devil and HTML5
The Devil and HTML5The Devil and HTML5
The Devil and HTML5
 
HTML5: Markup Evolved
HTML5: Markup EvolvedHTML5: Markup Evolved
HTML5: Markup Evolved
 
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
 
WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)
 
HTML5+CSS3 (入門編)
HTML5+CSS3 (入門編)HTML5+CSS3 (入門編)
HTML5+CSS3 (入門編)
 
Webware - from Document to Operating System
Webware - from Document to Operating System Webware - from Document to Operating System
Webware - from Document to Operating System
 
An Introduction To HTML5
An Introduction To HTML5An Introduction To HTML5
An Introduction To HTML5
 
Html5
Html5Html5
Html5
 
Upload[1]
Upload[1]Upload[1]
Upload[1]
 
[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web Design[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web Design
 
TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單
 
The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

HTML5