SlideShare une entreprise Scribd logo
1  sur  97
Télécharger pour lire hors ligne
Présentation complète de l'HTML5
Objectif : Que chacun reparte avec une
  vision globale claire de l'HTML5
"Qu'est-ce que je dois faire pour faire un
            site HTML5 ?"
...l'HTML5 c'est quoi ?
C'est très simple...
contenteditable attribute, Drag and Drop, meta name="
        viewport" content="width=device-width, user-
   scalable=no", Cross-document messaging, Notification
  API, Web Storage - name/value pairs, XmlHttpRequest 2,
querySelector/querySelectorAll, Microdata, Descriptive tags /
         rel, JSON parsing, WAI-ARIA Accessibility
              features, Hashchange event, Data
        URLs, Canvas, SVG, Cross-Origin Resource
       SharinggetElementsByClassName, Offline web
       applications, HTML5 history - onReplaceState -
     onPushState, audio, Microformats, video, Text Api
     Canvas, web workers, geolocation, SVG effects for
    HTML, New semantic elements, File API, Web SQL
 Database, , MathML, classList (DOMTokenList), SVG SMIL
   animation, Forms 2.0, Server-sent DOM events, Web
                   Sockets, Form validation,
                     WebGL, IndexedDB
Qui crée l'HTML5 ?
HTML




HTML
        +     JS
Les nouveautés pour le code HTML




       HTML                JS
L’allégement du code
HTML 4.01 / XHTML 1.0



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <link rel="stylesheet" type="text/css" href="design.css" />
 <script type=”text/javascript” src=script.js"></script>
</head>
<body>
</body>
</html>
HTML 4.01 / XHTML 1.0



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <link rel="stylesheet" type="text/css" href="design.css" />
 <script type=”text/javascript” src=script.js"></script>
</head>
<body>
</body>
</html>
HTML5



<!DOCTYPE html>
<html lang="fr">
<head>
 <meta charset="utf-8" />
 <link href="design.css" rel="stylesheet" />
 <script src="script.js"></script>
</head>
Les nouvelles balises
Balises sémantiques
<header>, <footer>, <aside>,
<nav>, <article>, <section>...
HTML 4.01 / XHTML 1.0

<div id="header">
  <h1>Mon super site</h1>
</div>

<div id="article">
  <h2>Mon super article<h2>

  <div id="intro">
    <p>Un premier paragraphe</p>
  </div>

 <div id="content">
   <p>Un premier paragraphe</p>
   <p>Un deuxième paragraphe</p>
 </div>

 <div id="conclusion">
   <p>Un premier paragraphe</p>
 </div>

   <div id="author">Ecrit par moi-même</div>
</div>
HTML 4.01 / XHTML 1.0

<div id="header">
  <h1>Mon super site</h1>
</div>

<div id="article">
  <h2>Mon super article<h2>

  <div id="intro">
    <p>Un premier paragraphe</p>
  </div>

 <div id="content">
   <p>Un premier paragraphe</p>
   <p>Un deuxième paragraphe</p>
 </div>

 <div id="conclusion">
   <p>Un premier paragraphe</p>
 </div>

   <div id="author">Ecrit par moi-même</div>
</div>
HTML 4.01 / XHTML 1.0

<div id="header">
  <h1>Mon super site</h1>
</div>

<div id="article">
  <h2>Mon super article<h2>

  <div id="intro">
    <p>Un premier paragraphe</p>
  </div>

 <div id="content">
   <p>Un premier paragraphe</p>
   <p>Un deuxième paragraphe</p>
 </div>

 <div id="conclusion">
   <p>Un premier paragraphe</p>
 </div>

   <div id="author">Ecrit par moi-même</div>
</div>
HTML5

<header>
  <h1>Mon super site</h1>
<header>

<article>
  <h1>Mon super article<h1>

  <section>
    <p>Un premier paragraphe</p>
  </section>

 <section>
   <p>Un premier paragraphe</p>
   <p>Un deuxième paragraphe</p>
 </section>

 <section>
   <p>Un premier paragraphe</p>
 </section>

   <footer>Ecrit par moi-même</footer>
</article>
Les balises <b>, <i>
et quelques autres vieilleries...
...ont été recyclées !
<em> = Texte prononcé avec emphase
<i> = Texte prononcé par quelqu'un d'autre
<strong> = Texte important
<b>      = Texte visuellement différent
WAI-ARIA
<header role="banner">

<form role="search">

<nav role="navigation">

<section role="main">
Les balises fun
<audio> & <video>
<video>
http://www.craftymind.com/factory/html5video/CanvasVideo.html
Bon, ok c'est du canvas...
<audio>
<audio>

 <source src="song.ogg" type="video/ogg" />

 <source src="song.mp3" type="video/mp3" />

</audio>

<video>

 <source src="video.mp4" type="video/mp4" />

 <source src="video.ogv" type="video/ogg" />

</video>
<canvas>
Pas tout de suite :)
Les formulaires 2.0
<input type="text">

   search
   tel
   mail
   url
   date
   number
   range
   color
   ...etc
ContentEditable




http://html5demos.com/contenteditable
http://aloha-editor.org/
Les nouveautés Javascript




HTML               JS
"Javascript c'est mal"
Ca, c'est mal
"Javascript c'est compliqué"
$.getJSON("http://api.truc.com/getUser", function(user){
  alert(user.name);
});




$("#content").load("http://www.truc.com/members.html");
GWT
http://www.youtube.com/watch?v=fyfu4OwjUEI
Le Drag and Drop
La File API




http://demos.hacks.mozilla.org/openweb/FileAPI/
XmlHttpRequest Level 2
   (XHR2 pour les intimes)
XmlHttpRequest Level 2
                   (XHR2 pour les intimes)

Cross domain
<?php
header("Access-Control-Allow-Origin: *");
XmlHttpRequest Level 2
                   (XHR2 pour les intimes)

Cross domain
<?php
header("Access-Control-Allow-Origin: *");




Progression
oXHR.onprogress = function(e) {    // (e.loaded / e.total) * 100); };




<progress max="100">
Les applications Offline
Le localStorage
localStorage["key"] = "value";
localStorage.setitem("key", "value");

var key = localStorage["key"];
var key = localStorage.getitem["key"];
Base de données locale :
      IndexedDB
Le fichier manifest
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html manifest="site.appcache">
<!DOCTYPE html>
<html manifest="site.appcache">


CACHE MANIFEST

# Version 0.1

index.html
logo.png
<!DOCTYPE html>
<html manifest="site.appcache">


CACHE MANIFEST

# Version 0.1

index.html
logo.png

AddType text/cache-manifest .appcache
<link rel="apple-touch-icon"
    href="apple-touch-icon.png"/>
Pas de marketplace
Pas intuitif
History API
history.back();
history.forward();

history.pushState();
history.replaceState();
history.back();
         history.forward();

         history.pushState();
         history.replaceState();



Plus besoin d'utiliser le # pour naviguer
dans les applications AJAX
Les Websockets
Permet le full duplex entre le
  navigateur et le serveur
Push de données vers le
      navigateur
Permet de communiquer sans
    le protocole HTTP
3 fois plus rapide (150ms > 50ms)
Cross Domain
Traverse les firewalls et proxys
La géolocalisation
navigator.geolocation.getCurrentPosition(function(pos){
  alert(position.coords.latitude + " " + pos.coords.longitude);
});
navigator.geolocation.getCurrentPosition(function(pos){
  alert(position.coords.latitude + " " + pos.coords.longitude);
});
navigator.geolocation.getCurrentPosition(function(pos){
  alert(position.coords.latitude + " " + pos.coords.longitude);
});
En quelques lignes on obtient très facilement :
Drag and Drop, meta name="viewport" content="
  width=device-width, user-scalable=no", Cross-document
 messaging, Notification API, Web Storage - name/value
         pairs, XmlHttpRequest 2, contenteditable
attribute, querySelector/querySelectorAll, Microdata, Descri
  ptive tags / rel, JSON parsing, WAI-ARIA Accessibility
             features, Hashchange event, Data
        URLs, Canvas, SVG, Cross-Origin Resource
      Sharing, getElementsByClassName, Offline web
      applications, HTML5 history - onReplaceState -
     onPushState, audio, Microformats, video, Text Api
     Canvas, web workers, geolocation, SVG effects for
     HTML, New semantic elements, File API, Web SQL
 Database, MathML, classList (DOMTokenList), SVG SMIL
   animation, Forms 2.0, Server-sent DOM events, Web
                  Sockets, Form validation,
                      WebGL, IndexedDB
"Ca sort quand ?"
Spécification finalisée en 2014
Candidate recommendation : 2022
Support des navigateurs
CanIUse.com




FindMeByIp.com
IE9 le sauveur ?
On peut commencer dès maintenant !
Outils :
  Modernizr
  HTML5shiv
  HTML5 Boilerplate
  ...et Initializr!
Le canvas sur le gâteau


http://videos.mozilla.org/serv/mozhacks/flight-of-the-navigator/

Contenu connexe

Tendances

Formation HTML5/CSS3
Formation HTML5/CSS3Formation HTML5/CSS3
Formation HTML5/CSS3G²FOSS ENIT
 
exposé en HTML
exposé en HTMLexposé en HTML
exposé en HTMLYaya Im
 
Langage HTML - Fondamentaux et ateliers
Langage HTML - Fondamentaux et ateliersLangage HTML - Fondamentaux et ateliers
Langage HTML - Fondamentaux et ateliersFrédéric Simonet
 
HTML5, le web de demain - BNSA
HTML5, le web de demain - BNSAHTML5, le web de demain - BNSA
HTML5, le web de demain - BNSABNSA - Aquitaine
 
Les balises HTML
Les balises HTMLLes balises HTML
Les balises HTMLNeovov
 
Html de base
Html de baseHtml de base
Html de basekrymo
 
Formation html5 css3 java script
Formation html5 css3 java scriptFormation html5 css3 java script
Formation html5 css3 java scriptArrow Group
 
Prsentationhtml5 html5 ii twebteck
Prsentationhtml5 html5 ii twebteckPrsentationhtml5 html5 ii twebteck
Prsentationhtml5 html5 ii twebteckTECOS
 
HTML5 et le SEO : quelles opportunités ?
HTML5 et le SEO : quelles opportunités ?HTML5 et le SEO : quelles opportunités ?
HTML5 et le SEO : quelles opportunités ?Eroan Boyer
 
Présentation html5
Présentation html5Présentation html5
Présentation html5Kénium
 
HTML 5 - intro - en francais
HTML 5 - intro - en francaisHTML 5 - intro - en francais
HTML 5 - intro - en francaisVlad Posea
 
Creation de-themes-wp
Creation de-themes-wpCreation de-themes-wp
Creation de-themes-wpChi Nacim
 

Tendances (20)

Formation HTML5/CSS3
Formation HTML5/CSS3Formation HTML5/CSS3
Formation HTML5/CSS3
 
Cours HTML/CSS
Cours HTML/CSSCours HTML/CSS
Cours HTML/CSS
 
HTML
HTMLHTML
HTML
 
exposé en HTML
exposé en HTMLexposé en HTML
exposé en HTML
 
Langage HTML - Fondamentaux et ateliers
Langage HTML - Fondamentaux et ateliersLangage HTML - Fondamentaux et ateliers
Langage HTML - Fondamentaux et ateliers
 
HTML5, le web de demain - BNSA
HTML5, le web de demain - BNSAHTML5, le web de demain - BNSA
HTML5, le web de demain - BNSA
 
Html css-xhtml
Html css-xhtmlHtml css-xhtml
Html css-xhtml
 
Les balises HTML
Les balises HTMLLes balises HTML
Les balises HTML
 
Html de base
Html de baseHtml de base
Html de base
 
Formation html5 css3 java script
Formation html5 css3 java scriptFormation html5 css3 java script
Formation html5 css3 java script
 
Css+html
Css+htmlCss+html
Css+html
 
Prsentationhtml5 html5 ii twebteck
Prsentationhtml5 html5 ii twebteckPrsentationhtml5 html5 ii twebteck
Prsentationhtml5 html5 ii twebteck
 
Formation web
Formation webFormation web
Formation web
 
HTML5 et le SEO : quelles opportunités ?
HTML5 et le SEO : quelles opportunités ?HTML5 et le SEO : quelles opportunités ?
HTML5 et le SEO : quelles opportunités ?
 
Présentation html5
Présentation html5Présentation html5
Présentation html5
 
HTML 5 - intro - en francais
HTML 5 - intro - en francaisHTML 5 - intro - en francais
HTML 5 - intro - en francais
 
Html
HtmlHtml
Html
 
cours Php
cours Phpcours Php
cours Php
 
Creation de-themes-wp
Creation de-themes-wpCreation de-themes-wp
Creation de-themes-wp
 
Css
CssCss
Css
 

En vedette

現代アートと中国、そして日本。
現代アートと中国、そして日本。現代アートと中国、そして日本。
現代アートと中国、そして日本。Mint Yoshida
 
Node Foundation Membership Overview 20160907
Node Foundation Membership Overview 20160907Node Foundation Membership Overview 20160907
Node Foundation Membership Overview 20160907NodejsFoundation
 
Formation html5 CSS3 offerte par ippon 2014
Formation html5 CSS3 offerte par ippon 2014Formation html5 CSS3 offerte par ippon 2014
Formation html5 CSS3 offerte par ippon 2014Ippon
 
HTML5, How to rethink your web strategy - Version FR
HTML5, How to rethink your web strategy - Version FRHTML5, How to rethink your web strategy - Version FR
HTML5, How to rethink your web strategy - Version FRFabernovel
 

En vedette (6)

現代アートと中国、そして日本。
現代アートと中国、そして日本。現代アートと中国、そして日本。
現代アートと中国、そして日本。
 
How to build a weebly website ppt
How to build a weebly website pptHow to build a weebly website ppt
How to build a weebly website ppt
 
Node Foundation Membership Overview 20160907
Node Foundation Membership Overview 20160907Node Foundation Membership Overview 20160907
Node Foundation Membership Overview 20160907
 
Formation html5 CSS3 offerte par ippon 2014
Formation html5 CSS3 offerte par ippon 2014Formation html5 CSS3 offerte par ippon 2014
Formation html5 CSS3 offerte par ippon 2014
 
Algoritmos AHA 2015 ESPAÑOL
Algoritmos AHA 2015 ESPAÑOLAlgoritmos AHA 2015 ESPAÑOL
Algoritmos AHA 2015 ESPAÑOL
 
HTML5, How to rethink your web strategy - Version FR
HTML5, How to rethink your web strategy - Version FRHTML5, How to rethink your web strategy - Version FR
HTML5, How to rethink your web strategy - Version FR
 

Similaire à Présentation complète de l'HTML5

La mobilité dans Drupal
La mobilité dans DrupalLa mobilité dans Drupal
La mobilité dans DrupalAdyax
 
Symfony2 - Un Framework PHP 5 Performant
Symfony2 - Un Framework PHP 5 PerformantSymfony2 - Un Framework PHP 5 Performant
Symfony2 - Un Framework PHP 5 PerformantHugo Hamon
 
Nouveautés html5 et css3 dans internet explorer 10
Nouveautés html5 et css3 dans internet explorer 10Nouveautés html5 et css3 dans internet explorer 10
Nouveautés html5 et css3 dans internet explorer 10davrous
 
Html5 2
Html5 2Html5 2
Html5 2TECOS
 
HTML 5 et CSS3, créez, animez et enrichissez vos sites Web
HTML 5 et CSS3, créez, animez et enrichissez vos sites WebHTML 5 et CSS3, créez, animez et enrichissez vos sites Web
HTML 5 et CSS3, créez, animez et enrichissez vos sites WebMicrosoft
 
technologie web - part2
technologie web - part2technologie web - part2
technologie web - part2Benoît Simard
 
Atelier autour de UWA à ParisWeb 2007
Atelier autour de UWA à ParisWeb 2007Atelier autour de UWA à ParisWeb 2007
Atelier autour de UWA à ParisWeb 2007Netvibes
 
1-Introduction JQuery.pptx
1-Introduction JQuery.pptx1-Introduction JQuery.pptx
1-Introduction JQuery.pptxlaabid1
 
Rich Desktop Applications
Rich Desktop ApplicationsRich Desktop Applications
Rich Desktop Applicationsgoldoraf
 
HTML5... La révolution maintenant!
HTML5... La révolution maintenant!HTML5... La révolution maintenant!
HTML5... La révolution maintenant!CARA_Lyon
 
HTML5... La révolution maintenant!
HTML5... La révolution maintenant!HTML5... La révolution maintenant!
HTML5... La révolution maintenant!CARA_Lyon
 
Développement Web sur iPhone (iPhone+iPad DevCamp Québec)
Développement Web sur iPhone (iPhone+iPad DevCamp Québec)Développement Web sur iPhone (iPhone+iPad DevCamp Québec)
Développement Web sur iPhone (iPhone+iPad DevCamp Québec)Rémi Prévost
 
vue j'avais pas vu !!
vue j'avais pas vu !!vue j'avais pas vu !!
vue j'avais pas vu !!Manuel Adele
 
Vue, j’avais pas vu !
Vue, j’avais pas vu !Vue, j’avais pas vu !
Vue, j’avais pas vu !Bruno Bonnin
 

Similaire à Présentation complète de l'HTML5 (20)

HTML5
HTML5HTML5
HTML5
 
La mobilité dans Drupal
La mobilité dans DrupalLa mobilité dans Drupal
La mobilité dans Drupal
 
Découverte HTML5/CSS3
Découverte HTML5/CSS3Découverte HTML5/CSS3
Découverte HTML5/CSS3
 
Symfony2 - Un Framework PHP 5 Performant
Symfony2 - Un Framework PHP 5 PerformantSymfony2 - Un Framework PHP 5 Performant
Symfony2 - Un Framework PHP 5 Performant
 
Nouveautés html5 et css3 dans internet explorer 10
Nouveautés html5 et css3 dans internet explorer 10Nouveautés html5 et css3 dans internet explorer 10
Nouveautés html5 et css3 dans internet explorer 10
 
HTML5, le nouveau buzzword
HTML5, le nouveau buzzwordHTML5, le nouveau buzzword
HTML5, le nouveau buzzword
 
Html5 2
Html5 2Html5 2
Html5 2
 
HTML 5 et CSS3, créez, animez et enrichissez vos sites Web
HTML 5 et CSS3, créez, animez et enrichissez vos sites WebHTML 5 et CSS3, créez, animez et enrichissez vos sites Web
HTML 5 et CSS3, créez, animez et enrichissez vos sites Web
 
technologie web - part2
technologie web - part2technologie web - part2
technologie web - part2
 
Atelier autour de UWA à ParisWeb 2007
Atelier autour de UWA à ParisWeb 2007Atelier autour de UWA à ParisWeb 2007
Atelier autour de UWA à ParisWeb 2007
 
1-Introduction JQuery.pptx
1-Introduction JQuery.pptx1-Introduction JQuery.pptx
1-Introduction JQuery.pptx
 
Rich Desktop Applications
Rich Desktop ApplicationsRich Desktop Applications
Rich Desktop Applications
 
Tapestry
TapestryTapestry
Tapestry
 
HTML5... La révolution maintenant!
HTML5... La révolution maintenant!HTML5... La révolution maintenant!
HTML5... La révolution maintenant!
 
HTML5... La révolution maintenant!
HTML5... La révolution maintenant!HTML5... La révolution maintenant!
HTML5... La révolution maintenant!
 
Html5 & ie
Html5 & ieHtml5 & ie
Html5 & ie
 
Développement Web sur iPhone (iPhone+iPad DevCamp Québec)
Développement Web sur iPhone (iPhone+iPad DevCamp Québec)Développement Web sur iPhone (iPhone+iPad DevCamp Québec)
Développement Web sur iPhone (iPhone+iPad DevCamp Québec)
 
JQuery
JQueryJQuery
JQuery
 
vue j'avais pas vu !!
vue j'avais pas vu !!vue j'avais pas vu !!
vue j'avais pas vu !!
 
Vue, j’avais pas vu !
Vue, j’avais pas vu !Vue, j’avais pas vu !
Vue, j’avais pas vu !
 

Présentation complète de l'HTML5