SlideShare ist ein Scribd-Unternehmen logo
1 von 37
HTML5
Web       API


                @
html5-developers-jp Google


                        Web


Google       API Expert HTML5

2007     Gears

          Gears
HTML5

  HTML5 - HTML      XHTML       API




Open Web Platform         API



Open Web       Web

                     ×4 and,
HTML5                       (1)

                 HTML

                API

8/25

       10


         2022           w
HTML5                             (2)


                            Web
        API

  HTML5 - A vocabulary and associated APIs for
  HTML and XHTML
  Web Storage, Web Database, Web Workers...
Gears      API
HTML5 - A vocabulary and associated APIs for HTML and
XHTML


       HTML5



          HTML5




          Canvas



                       API
HTML5 - HTML5


            .html .htm

          Content-Type text/html


     DOCTYPE
<!DOCTYPE html>
<html>
 <body>
 ...
 </body>
</html>
HTML5                     - HTML5




        article, aside, footer, header, hgroup, nav, section



        figure, source, video, audio, canvas, embed
               Web

        keygen, output, input                type



        progress, meter, command, details



        mark, ruby, rt, rp, time
HTML5



   section   HTML
     CSS            section    div

   article
                              <atom:entry> aside

   aside

   nav
body, td        HTML5




     h1-h6

     hgroup

header,footer
<!DOCTYPE html>
<html>
  <head><meta charset=”UTF-8”></head>
  <body>
    <header>
       <nav><li>a</li><li>b</li></nav>
    </header>
    <section id=”main”>
       <h1>                      </h1>
      <article>
        <h1>          </h1>
      </article>
    </section>
    <footer>Copyright(c)...</footer>
  </body>
</html>
<!DOCTYPE html>
<html>
  <head><meta charset=”UTF-8”></head>
  <body>
    <header>
       <nav><li>a</li><li>b</li></nav>
    </header>
    <section id=”main”>
       <h1>                      </h1>
      <article>
        <h1>          </h1>
      </article>
    </section>
    <footer>Copyright(c)...</footer>
  </body>
</html>
<!DOCTYPE html>
<html>
  <head><meta charset=”UTF-8”></head>
  <body>
    <header>
       <nav><li>a</li><li>b</li></nav>
    </header>
    <section id=”main”>
       <h1>                      </h1>
      <article>
        <h1>          </h1>
      </article>
    </section>
    <footer>Copyright(c)...</footer>
  </body>
</html>
<!DOCTYPE html>
<html>
  <head><meta charset=”UTF-8”></head>
  <body>
    <header>
       <nav><li>a</li><li>b</li></nav>
    </header>
    <section id=”main”>
       <h1>                      </h1>
      <article>
        <h1>          </h1>
      </article>
    </section>
    <footer>Copyright(c)...</footer>
  </body>
</html>
<!DOCTYPE html>
<html>
  <head><meta charset=”UTF-8”></head>
  <body>
    <header>
       <nav><li>a</li><li>b</li></nav>
    </header>
    <section id=”main”>
       <h1>                      </h1>
      <article>
        <h1>          </h1>
      </article>
    </section>
    <footer>Copyright(c)...</footer>
  </body>
</html>
-




    h1-h6



    h1-h6



    section/article/nav/aside
-


<body>
  <h1>body                          </h1>
 <p>           1       </p>
 <h2>h2                                 </h2>
 <p>           2       </p>
</body>




<body>
  <h1>body                          </h1>
  <p>          1       </p>
  <section>
    <h2>section                             </h2>
    <p>            2     </p>
  </section>
</body>
Canvas




         Canvas
Canvas


    Canvas                      <canvas>

    Canvas                      canvas
    (canvas.getContext(“2d”))

<canvas id=”canvas1” width=”200” height=”100”>

var canvas1 = document.getElementById(“canvas1”);
var ctx = canvas1.getContext(“2d”);

ctx.drawImage(image, 0, 0);
...
    3d

                     O3D (Google), Canvas3D (Mozilla), Opera 3D

                                Web GL OpenGL ES2.0 JavaScript
<video>

<audio>

<source>



<video><audio>


JavaScript



             Google On2 Technology
<video id=”video1” width=”300” src=”video.ogv”>

</video>

//      JavaScript
var video1 = document.getElementById(“video1”);
video1.play();
video1.stop();
video1.addEventListener(
    “onloadstart”, function(){}, false);
WebForms2.0

                      input    type

    tel

    search

    url         URL

    email

    datetime, datetime-local

    date

    (       )
input   type

month

week

time

number

range

color

         Opera
required

pattern

type                             email, url

form      submit

form.checkValidity()



                   placeholder
API




&   API

    draggable

    dragstart                                             DataTransfer



    dropover                     event.preventDefault()



    drop                     DataTransfer
           event.stopPropagation()
API


<div id=”dragSrc” draggable>        </div>
<div id=”dragDest”>        </div>

dragSrc.addEventListener(“dragStart”, function(e) {
  var dt = e.dataTransfer;
  dt.setData(“text/plain”, “Hello”);
  return true;
});

dragDest.addEventListener(“dragOver”, function(e) {
  e.preventDefault();
  return false;
});

dragDest.addEventListener(“drop”, function(e) {
  var text = e.dataTransfer.getData(“text/plain”);
  e.stopPropagation();
  ...
  return false;
});
DOM            API

     Element.classList        className

     Document.getElementByClassName()

designMode execCommand()                         WYSIWYG



Microdata

            role, aria-, contextmenu, hidden, data-*, contentEditable.....

... more and more
Open Web Platform   API




   Web Workers

   Web Storage

   Web Database

   Web Sockets
Web




                                                  Content-Type: text/
cache-manifest

Web          html        manifest
      URL                 : <html manifest=”hello.manifest”>

                 JavaScript
-




                 UTF-8

     1



CACHE MANIFEST

# version: 200909241054

hello.html
hello.js
document




           window.postMessage(message, targetOrigin)

           onmessage

    :
var iframe = ...
iframe.contentWindow.postMessage(“Hello”, “http://destdomain.com”);

     :
onmessage = function(event) {
  if (event.origin == “http://srcdomain.com”) {
    var message = event.data;
    ...
  }
}
Web Workers


                                                               UI

             : new Worker(scriptUrl)




                                       : worker.postMessage(message);

                                       : worker.onmessage(event);

                   postMessage    onmessage



                                  SharedWorker
               ui.js                                                worker.js
worker.onmessage =                              onmessage = function(msg) {
function(msg) {                                   ...
  ...                                             postMessage(...)
}                                               }
function a {
  worker.postMessage(...)
Web Database


                                   SQL

          API         API

                API



             API

  var db = openDatabase(...)
  db.transaction(function(tx) {
   tx.executeSql(
    “INSERT INTO Customer (NAME, AGE) “ +
    “VALUES(?,?)”, [“Shiraishi”, 31],
   function onSuccess(tx, rs) {
    ...                 ...
   },
   function onError(tx, error) {
Web Storage




         LocalStorage

         SessionStorage


    localStorage.setItem(“key”, “value”);

    var val = localStorage.getItem(“key”);
    //
    localStorage.key =“value”;

    var val = localStorage.key;
Web Sockets


      HTTP                          API



             80(ws), 443(wss)     HTTP/HTTPS

    new WebSocket(url)                 postMessage()   onmessage()



       var ws = new WebSocket(“ws://example.com”);
       ws.onmessage = function(message) {
         ...
       }

       ws.postMessage(“Hello”);
HTML                             Web

HTML5     API



            Web

    Canvas SVG                   UI




    ...



                  Let’s HTML5!
Html5 For Jjugccc2009fall

Weitere ähnliche Inhalte

Was ist angesagt?

Google
GoogleGoogle
Googlesoon
 
Authentication
AuthenticationAuthentication
Authenticationsoon
 
The Big Picture and How to Get Started
The Big Picture and How to Get StartedThe Big Picture and How to Get Started
The Big Picture and How to Get Startedguest1af57e
 
OSGi and Spring Data for simple (Web) Application Development - Christian Bar...
OSGi and Spring Data for simple (Web) Application Development - Christian Bar...OSGi and Spring Data for simple (Web) Application Development - Christian Bar...
OSGi and Spring Data for simple (Web) Application Development - Christian Bar...mfrancis
 
Frameworkless Web Development in Clojure
Frameworkless Web Development in ClojureFrameworkless Web Development in Clojure
Frameworkless Web Development in ClojureKungi2342
 
GDI Seattle - Intro to JavaScript Class 4
GDI Seattle - Intro to JavaScript Class 4GDI Seattle - Intro to JavaScript Class 4
GDI Seattle - Intro to JavaScript Class 4Heather Rock
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web componentsMarc Bächinger
 
Simplify AJAX using jQuery
Simplify AJAX using jQuerySimplify AJAX using jQuery
Simplify AJAX using jQuerySiva Arunachalam
 
Deploying
DeployingDeploying
Deployingsoon
 
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, MoscowJavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, MoscowRobert Nyman
 
Bootstrap과 UI-Bootstrap
Bootstrap과 UI-BootstrapBootstrap과 UI-Bootstrap
Bootstrap과 UI-BootstrapWebFrameworks
 
Backbone.js — Introduction to client-side JavaScript MVC
Backbone.js — Introduction to client-side JavaScript MVCBackbone.js — Introduction to client-side JavaScript MVC
Backbone.js — Introduction to client-side JavaScript MVCpootsbook
 
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점Jeado Ko
 
JavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeJavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeLaurence Svekis ✔
 
The Ring programming language version 1.5.2 book - Part 42 of 181
The Ring programming language version 1.5.2 book - Part 42 of 181The Ring programming language version 1.5.2 book - Part 42 of 181
The Ring programming language version 1.5.2 book - Part 42 of 181Mahmoud Samir Fayed
 

Was ist angesagt? (19)

Google
GoogleGoogle
Google
 
Authentication
AuthenticationAuthentication
Authentication
 
The Big Picture and How to Get Started
The Big Picture and How to Get StartedThe Big Picture and How to Get Started
The Big Picture and How to Get Started
 
OSGi and Spring Data for simple (Web) Application Development - Christian Bar...
OSGi and Spring Data for simple (Web) Application Development - Christian Bar...OSGi and Spring Data for simple (Web) Application Development - Christian Bar...
OSGi and Spring Data for simple (Web) Application Development - Christian Bar...
 
Micro app-framework
Micro app-frameworkMicro app-framework
Micro app-framework
 
Frameworkless Web Development in Clojure
Frameworkless Web Development in ClojureFrameworkless Web Development in Clojure
Frameworkless Web Development in Clojure
 
GDI Seattle - Intro to JavaScript Class 4
GDI Seattle - Intro to JavaScript Class 4GDI Seattle - Intro to JavaScript Class 4
GDI Seattle - Intro to JavaScript Class 4
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web components
 
High-Quality JavaScript
High-Quality JavaScriptHigh-Quality JavaScript
High-Quality JavaScript
 
Simplify AJAX using jQuery
Simplify AJAX using jQuerySimplify AJAX using jQuery
Simplify AJAX using jQuery
 
Deploying
DeployingDeploying
Deploying
 
jQuery Introduction
jQuery IntroductionjQuery Introduction
jQuery Introduction
 
Progressive What Apps?
Progressive What Apps?Progressive What Apps?
Progressive What Apps?
 
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, MoscowJavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
 
Bootstrap과 UI-Bootstrap
Bootstrap과 UI-BootstrapBootstrap과 UI-Bootstrap
Bootstrap과 UI-Bootstrap
 
Backbone.js — Introduction to client-side JavaScript MVC
Backbone.js — Introduction to client-side JavaScript MVCBackbone.js — Introduction to client-side JavaScript MVC
Backbone.js — Introduction to client-side JavaScript MVC
 
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
 
JavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeJavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your code
 
The Ring programming language version 1.5.2 book - Part 42 of 181
The Ring programming language version 1.5.2 book - Part 42 of 181The Ring programming language version 1.5.2 book - Part 42 of 181
The Ring programming language version 1.5.2 book - Part 42 of 181
 

Ähnlich wie Html5 For Jjugccc2009fall

Paris js extensions
Paris js extensionsParis js extensions
Paris js extensionserwanl
 
Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~Sho Ito
 
HTML5 (and friends) - History, overview and current status - jsDay Verona 11....
HTML5 (and friends) - History, overview and current status - jsDay Verona 11....HTML5 (and friends) - History, overview and current status - jsDay Verona 11....
HTML5 (and friends) - History, overview and current status - jsDay Verona 11....Patrick Lauke
 
Brave new world of HTML5
Brave new world of HTML5Brave new world of HTML5
Brave new world of HTML5Chris Mills
 
webinale2011_Chris Mills_Brave new world of HTML5Html5
webinale2011_Chris Mills_Brave new world of HTML5Html5webinale2011_Chris Mills_Brave new world of HTML5Html5
webinale2011_Chris Mills_Brave new world of HTML5Html5smueller_sandsmedia
 
Pracitcal AJAX
Pracitcal AJAXPracitcal AJAX
Pracitcal AJAXjherr
 
5 x HTML5 worth using in APEX (5)
5 x HTML5 worth using in APEX (5)5 x HTML5 worth using in APEX (5)
5 x HTML5 worth using in APEX (5)Christian Rokitta
 
e-suap - client technologies- english version
e-suap - client technologies- english versione-suap - client technologies- english version
e-suap - client technologies- english versionSabino Labarile
 
Developing your first application using FIWARE
Developing your first application using FIWAREDeveloping your first application using FIWARE
Developing your first application using FIWAREFIWARE
 
Repaso rápido a los nuevos estándares web
Repaso rápido a los nuevos estándares webRepaso rápido a los nuevos estándares web
Repaso rápido a los nuevos estándares webPablo Garaizar
 
Java Web Programming on Google Cloud Platform [3/3] : Google Web Toolkit
Java Web Programming on Google Cloud Platform [3/3] : Google Web ToolkitJava Web Programming on Google Cloud Platform [3/3] : Google Web Toolkit
Java Web Programming on Google Cloud Platform [3/3] : Google Web ToolkitIMC Institute
 
Create a mobile web app with Sencha Touch
Create a mobile web app with Sencha TouchCreate a mobile web app with Sencha Touch
Create a mobile web app with Sencha TouchJames Pearce
 
Overview of The Scala Based Lift Web Framework
Overview of The Scala Based Lift Web FrameworkOverview of The Scala Based Lift Web Framework
Overview of The Scala Based Lift Web FrameworkIndicThreads
 

Ähnlich wie Html5 For Jjugccc2009fall (20)

Paris js extensions
Paris js extensionsParis js extensions
Paris js extensions
 
Play!ng with scala
Play!ng with scalaPlay!ng with scala
Play!ng with scala
 
Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~
 
HTML5 (and friends) - History, overview and current status - jsDay Verona 11....
HTML5 (and friends) - History, overview and current status - jsDay Verona 11....HTML5 (and friends) - History, overview and current status - jsDay Verona 11....
HTML5 (and friends) - History, overview and current status - jsDay Verona 11....
 
Brave new world of HTML5
Brave new world of HTML5Brave new world of HTML5
Brave new world of HTML5
 
webinale2011_Chris Mills_Brave new world of HTML5Html5
webinale2011_Chris Mills_Brave new world of HTML5Html5webinale2011_Chris Mills_Brave new world of HTML5Html5
webinale2011_Chris Mills_Brave new world of HTML5Html5
 
Introduccion a HTML5
Introduccion a HTML5Introduccion a HTML5
Introduccion a HTML5
 
html5
html5html5
html5
 
HTML 5 - Overview
HTML 5 - OverviewHTML 5 - Overview
HTML 5 - Overview
 
HTML5
HTML5HTML5
HTML5
 
Pracitcal AJAX
Pracitcal AJAXPracitcal AJAX
Pracitcal AJAX
 
5 x HTML5 worth using in APEX (5)
5 x HTML5 worth using in APEX (5)5 x HTML5 worth using in APEX (5)
5 x HTML5 worth using in APEX (5)
 
e-suap - client technologies- english version
e-suap - client technologies- english versione-suap - client technologies- english version
e-suap - client technologies- english version
 
Developing your first application using FIWARE
Developing your first application using FIWAREDeveloping your first application using FIWARE
Developing your first application using FIWARE
 
Repaso rápido a los nuevos estándares web
Repaso rápido a los nuevos estándares webRepaso rápido a los nuevos estándares web
Repaso rápido a los nuevos estándares web
 
jQuery
jQueryjQuery
jQuery
 
Java Web Programming on Google Cloud Platform [3/3] : Google Web Toolkit
Java Web Programming on Google Cloud Platform [3/3] : Google Web ToolkitJava Web Programming on Google Cloud Platform [3/3] : Google Web Toolkit
Java Web Programming on Google Cloud Platform [3/3] : Google Web Toolkit
 
Create a mobile web app with Sencha Touch
Create a mobile web app with Sencha TouchCreate a mobile web app with Sencha Touch
Create a mobile web app with Sencha Touch
 
Overview Of Lift Framework
Overview Of Lift FrameworkOverview Of Lift Framework
Overview Of Lift Framework
 
Overview of The Scala Based Lift Web Framework
Overview of The Scala Based Lift Web FrameworkOverview of The Scala Based Lift Web Framework
Overview of The Scala Based Lift Web Framework
 

Mehr von Shumpei Shiraishi

コンセプトのつくりかた - アイデアをかたちにする技術
コンセプトのつくりかた - アイデアをかたちにする技術コンセプトのつくりかた - アイデアをかたちにする技術
コンセプトのつくりかた - アイデアをかたちにする技術Shumpei Shiraishi
 
jQueryの先に行こう!最先端のWeb開発トレンドを学ぶ
jQueryの先に行こう!最先端のWeb開発トレンドを学ぶjQueryの先に行こう!最先端のWeb開発トレンドを学ぶ
jQueryの先に行こう!最先端のWeb開発トレンドを学ぶShumpei Shiraishi
 
TechFeedのつくりかた - Angular2/Webpack/Ionic2/Cordova実践入門
TechFeedのつくりかた - Angular2/Webpack/Ionic2/Cordova実践入門TechFeedのつくりかた - Angular2/Webpack/Ionic2/Cordova実践入門
TechFeedのつくりかた - Angular2/Webpack/Ionic2/Cordova実践入門Shumpei Shiraishi
 
JavaScript使いのためのTypeScript実践入門
JavaScript使いのためのTypeScript実践入門JavaScript使いのためのTypeScript実践入門
JavaScript使いのためのTypeScript実践入門Shumpei Shiraishi
 
「それでも人生にイエスと言う」を読んで
「それでも人生にイエスと言う」を読んで「それでも人生にイエスと言う」を読んで
「それでも人生にイエスと言う」を読んでShumpei Shiraishi
 
「それでも人生にイエスと言う」を読んで
「それでも人生にイエスと言う」を読んで「それでも人生にイエスと言う」を読んで
「それでも人生にイエスと言う」を読んでShumpei Shiraishi
 
WebRTCがビデオ会議市場に与えるインパクトを探る
WebRTCがビデオ会議市場に与えるインパクトを探るWebRTCがビデオ会議市場に与えるインパクトを探る
WebRTCがビデオ会議市場に与えるインパクトを探るShumpei Shiraishi
 
変身×フランツ・カフカ
変身×フランツ・カフカ変身×フランツ・カフカ
変身×フランツ・カフカShumpei Shiraishi
 
イラスト日用服飾辞典/三面記事の歴史/健康男 を読んで
イラスト日用服飾辞典/三面記事の歴史/健康男 を読んでイラスト日用服飾辞典/三面記事の歴史/健康男 を読んで
イラスト日用服飾辞典/三面記事の歴史/健康男 を読んでShumpei Shiraishi
 
「1秒でわかる!アパレル業界ハンドブック」を読んで
「1秒でわかる!アパレル業界ハンドブック」を読んで「1秒でわかる!アパレル業界ハンドブック」を読んで
「1秒でわかる!アパレル業界ハンドブック」を読んでShumpei Shiraishi
 
HTML5時代のフロントエンド開発入門
HTML5時代のフロントエンド開発入門HTML5時代のフロントエンド開発入門
HTML5時代のフロントエンド開発入門Shumpei Shiraishi
 
6,000人のWeb技術者コミュニティを5年間やってみて学んだこと
6,000人のWeb技術者コミュニティを5年間やってみて学んだこと6,000人のWeb技術者コミュニティを5年間やってみて学んだこと
6,000人のWeb技術者コミュニティを5年間やってみて学んだことShumpei Shiraishi
 
はじめにことばありき
はじめにことばありきはじめにことばありき
はじめにことばありきShumpei Shiraishi
 
HTML5がもたらすアプリ開発へのインパクト
HTML5がもたらすアプリ開発へのインパクトHTML5がもたらすアプリ開発へのインパクト
HTML5がもたらすアプリ開発へのインパクトShumpei Shiraishi
 
この人と結婚していいの?を読んで
この人と結婚していいの?を読んでこの人と結婚していいの?を読んで
この人と結婚していいの?を読んでShumpei Shiraishi
 

Mehr von Shumpei Shiraishi (20)

俺的GEB概論(前半)
俺的GEB概論(前半)俺的GEB概論(前半)
俺的GEB概論(前半)
 
コンセプトのつくりかた - アイデアをかたちにする技術
コンセプトのつくりかた - アイデアをかたちにする技術コンセプトのつくりかた - アイデアをかたちにする技術
コンセプトのつくりかた - アイデアをかたちにする技術
 
jQueryの先に行こう!最先端のWeb開発トレンドを学ぶ
jQueryの先に行こう!最先端のWeb開発トレンドを学ぶjQueryの先に行こう!最先端のWeb開発トレンドを学ぶ
jQueryの先に行こう!最先端のWeb開発トレンドを学ぶ
 
TechFeedのつくりかた - Angular2/Webpack/Ionic2/Cordova実践入門
TechFeedのつくりかた - Angular2/Webpack/Ionic2/Cordova実践入門TechFeedのつくりかた - Angular2/Webpack/Ionic2/Cordova実践入門
TechFeedのつくりかた - Angular2/Webpack/Ionic2/Cordova実践入門
 
JavaScript使いのためのTypeScript実践入門
JavaScript使いのためのTypeScript実践入門JavaScript使いのためのTypeScript実践入門
JavaScript使いのためのTypeScript実践入門
 
「それでも人生にイエスと言う」を読んで
「それでも人生にイエスと言う」を読んで「それでも人生にイエスと言う」を読んで
「それでも人生にイエスと言う」を読んで
 
「それでも人生にイエスと言う」を読んで
「それでも人生にイエスと言う」を読んで「それでも人生にイエスと言う」を読んで
「それでも人生にイエスと言う」を読んで
 
Angular2実践入門
Angular2実践入門Angular2実践入門
Angular2実践入門
 
WebRTCがビデオ会議市場に与えるインパクトを探る
WebRTCがビデオ会議市場に与えるインパクトを探るWebRTCがビデオ会議市場に与えるインパクトを探る
WebRTCがビデオ会議市場に与えるインパクトを探る
 
変身×フランツ・カフカ
変身×フランツ・カフカ変身×フランツ・カフカ
変身×フランツ・カフカ
 
イラスト日用服飾辞典/三面記事の歴史/健康男 を読んで
イラスト日用服飾辞典/三面記事の歴史/健康男 を読んでイラスト日用服飾辞典/三面記事の歴史/健康男 を読んで
イラスト日用服飾辞典/三面記事の歴史/健康男 を読んで
 
「1秒でわかる!アパレル業界ハンドブック」を読んで
「1秒でわかる!アパレル業界ハンドブック」を読んで「1秒でわかる!アパレル業界ハンドブック」を読んで
「1秒でわかる!アパレル業界ハンドブック」を読んで
 
漫☆画太郎論
漫☆画太郎論漫☆画太郎論
漫☆画太郎論
 
HTML5時代のフロントエンド開発入門
HTML5時代のフロントエンド開発入門HTML5時代のフロントエンド開発入門
HTML5時代のフロントエンド開発入門
 
6,000人のWeb技術者コミュニティを5年間やってみて学んだこと
6,000人のWeb技術者コミュニティを5年間やってみて学んだこと6,000人のWeb技術者コミュニティを5年間やってみて学んだこと
6,000人のWeb技術者コミュニティを5年間やってみて学んだこと
 
はじめにことばありき
はじめにことばありきはじめにことばありき
はじめにことばありき
 
秒速一億円
秒速一億円秒速一億円
秒速一億円
 
HTML5がもたらすアプリ開発へのインパクト
HTML5がもたらすアプリ開発へのインパクトHTML5がもたらすアプリ開発へのインパクト
HTML5がもたらすアプリ開発へのインパクト
 
この人と結婚していいの?を読んで
この人と結婚していいの?を読んでこの人と結婚していいの?を読んで
この人と結婚していいの?を読んで
 
20130921レジュメ2
20130921レジュメ220130921レジュメ2
20130921レジュメ2
 

Kürzlich hochgeladen

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 

Kürzlich hochgeladen (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 

Html5 For Jjugccc2009fall

  • 1. HTML5 Web API @
  • 2. html5-developers-jp Google Web Google API Expert HTML5 2007 Gears Gears
  • 3. HTML5 HTML5 - HTML XHTML API Open Web Platform API Open Web Web ×4 and,
  • 4. HTML5 (1) HTML API 8/25 10 2022 w
  • 5. HTML5 (2) Web API HTML5 - A vocabulary and associated APIs for HTML and XHTML Web Storage, Web Database, Web Workers... Gears API
  • 6. HTML5 - A vocabulary and associated APIs for HTML and XHTML HTML5 HTML5 Canvas API
  • 7. HTML5 - HTML5 .html .htm Content-Type text/html DOCTYPE <!DOCTYPE html> <html> <body> ... </body> </html>
  • 8. HTML5 - HTML5 article, aside, footer, header, hgroup, nav, section figure, source, video, audio, canvas, embed Web keygen, output, input type progress, meter, command, details mark, ruby, rt, rp, time
  • 9. HTML5 section HTML CSS section div article <atom:entry> aside aside nav
  • 10. body, td HTML5 h1-h6 hgroup header,footer
  • 11. <!DOCTYPE html> <html> <head><meta charset=”UTF-8”></head> <body> <header> <nav><li>a</li><li>b</li></nav> </header> <section id=”main”> <h1> </h1> <article> <h1> </h1> </article> </section> <footer>Copyright(c)...</footer> </body> </html>
  • 12. <!DOCTYPE html> <html> <head><meta charset=”UTF-8”></head> <body> <header> <nav><li>a</li><li>b</li></nav> </header> <section id=”main”> <h1> </h1> <article> <h1> </h1> </article> </section> <footer>Copyright(c)...</footer> </body> </html>
  • 13. <!DOCTYPE html> <html> <head><meta charset=”UTF-8”></head> <body> <header> <nav><li>a</li><li>b</li></nav> </header> <section id=”main”> <h1> </h1> <article> <h1> </h1> </article> </section> <footer>Copyright(c)...</footer> </body> </html>
  • 14. <!DOCTYPE html> <html> <head><meta charset=”UTF-8”></head> <body> <header> <nav><li>a</li><li>b</li></nav> </header> <section id=”main”> <h1> </h1> <article> <h1> </h1> </article> </section> <footer>Copyright(c)...</footer> </body> </html>
  • 15. <!DOCTYPE html> <html> <head><meta charset=”UTF-8”></head> <body> <header> <nav><li>a</li><li>b</li></nav> </header> <section id=”main”> <h1> </h1> <article> <h1> </h1> </article> </section> <footer>Copyright(c)...</footer> </body> </html>
  • 16. - h1-h6 h1-h6 section/article/nav/aside
  • 17. - <body> <h1>body </h1> <p> 1 </p> <h2>h2 </h2> <p> 2 </p> </body> <body> <h1>body </h1> <p> 1 </p> <section> <h2>section </h2> <p> 2 </p> </section> </body>
  • 18. Canvas Canvas
  • 19. Canvas Canvas <canvas> Canvas canvas (canvas.getContext(“2d”)) <canvas id=”canvas1” width=”200” height=”100”> var canvas1 = document.getElementById(“canvas1”); var ctx = canvas1.getContext(“2d”); ctx.drawImage(image, 0, 0); ... 3d O3D (Google), Canvas3D (Mozilla), Opera 3D Web GL OpenGL ES2.0 JavaScript
  • 21. <video id=”video1” width=”300” src=”video.ogv”> </video> // JavaScript var video1 = document.getElementById(“video1”); video1.play(); video1.stop(); video1.addEventListener( “onloadstart”, function(){}, false);
  • 22. WebForms2.0 input type tel search url URL email datetime, datetime-local date ( )
  • 23. input type month week time number range color Opera
  • 24. required pattern type email, url form submit form.checkValidity() placeholder
  • 25. API & API draggable dragstart DataTransfer dropover event.preventDefault() drop DataTransfer event.stopPropagation()
  • 26. API <div id=”dragSrc” draggable> </div> <div id=”dragDest”> </div> dragSrc.addEventListener(“dragStart”, function(e) { var dt = e.dataTransfer; dt.setData(“text/plain”, “Hello”); return true; }); dragDest.addEventListener(“dragOver”, function(e) { e.preventDefault(); return false; }); dragDest.addEventListener(“drop”, function(e) { var text = e.dataTransfer.getData(“text/plain”); e.stopPropagation(); ... return false; });
  • 27. DOM API Element.classList className Document.getElementByClassName() designMode execCommand() WYSIWYG Microdata role, aria-, contextmenu, hidden, data-*, contentEditable..... ... more and more
  • 28. Open Web Platform API Web Workers Web Storage Web Database Web Sockets
  • 29. Web Content-Type: text/ cache-manifest Web html manifest URL : <html manifest=”hello.manifest”> JavaScript
  • 30. - UTF-8 1 CACHE MANIFEST # version: 200909241054 hello.html hello.js
  • 31. document window.postMessage(message, targetOrigin) onmessage : var iframe = ... iframe.contentWindow.postMessage(“Hello”, “http://destdomain.com”); : onmessage = function(event) { if (event.origin == “http://srcdomain.com”) { var message = event.data; ... } }
  • 32. Web Workers UI : new Worker(scriptUrl) : worker.postMessage(message); : worker.onmessage(event); postMessage onmessage SharedWorker ui.js worker.js worker.onmessage = onmessage = function(msg) { function(msg) { ... ... postMessage(...) } } function a { worker.postMessage(...)
  • 33. Web Database SQL API API API API var db = openDatabase(...) db.transaction(function(tx) { tx.executeSql( “INSERT INTO Customer (NAME, AGE) “ + “VALUES(?,?)”, [“Shiraishi”, 31], function onSuccess(tx, rs) { ... ... }, function onError(tx, error) {
  • 34. Web Storage LocalStorage SessionStorage localStorage.setItem(“key”, “value”); var val = localStorage.getItem(“key”); // localStorage.key =“value”; var val = localStorage.key;
  • 35. Web Sockets HTTP API 80(ws), 443(wss) HTTP/HTTPS new WebSocket(url) postMessage() onmessage() var ws = new WebSocket(“ws://example.com”); ws.onmessage = function(message) { ... } ws.postMessage(“Hello”);
  • 36. HTML Web HTML5 API Web Canvas SVG UI ... Let’s HTML5!