SlideShare a Scribd company logo
It	
 is	
 not	
 HTML5.	
 but	
 ...
    HTML5
        HTML5
    36 	
 HTML5      	
 -	
 2013/02/18


             	
    	
  @sada_h
sadah.github.com 	
 /	
  @sada_h 	
 /	
  techlog
html5j 	
      	
 /	
 HTML5                    	
 
                            ,	
 Born	
 in	
 1981.
Ruby	
 /	
 Rails	
 /	
 HTML5	
 /	
 JavaScript	
 /	
 Java
Kakaku.com,	
 Inc.	
 Engineer	
 2012/08
                                  	
 [                     ]
                                      	
 [cena(                )]
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
are	
 not	
 HTML5.
HTML5
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
HTML5
HTML5	
 
2012/12/17	
 
W3C
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
HTML5
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
HTML5	
 Markup
HTML5


        Apple
        LAWSON
        UNITED	
 ARROWS	
 LTD.
        BEAMS
        Specs	
 :	
  HTML5 	
 /	
  HTML	
 5.1
HTML5	
 Markup
    html5shiv	
                          createElement	
 
<!--[if lt IE 9]>
 <script src="dist/html5shiv.js"></script>
<![endif]-->

elements = "abbr article aside audio bdi canvas data datalist details figcaption figu
re footer header hgroup mark meter nav output progress section summary time vi
deo".split(" ");
for(var i=0; i<elements.length; i++){
  document.createElement(elements[i]);
}

                 Sample:	
 HTML5	
 fall	
 back	
 Sample
microdata	
 /	
 RDFa
           	
 microdata	
  	
 RDFa
Barack	
 Obama
Home	
 -	
 schema.org
             	
 -	
 Google	
 
Google	
 Structured	
 Data	
 Testing	
 Tool
microdata	
 /	
 RDFa
                            Specs
HTML+RDFa	
 1.1
  Last	
 Call:	
 HTML+RDFa	
 1.1	
 -	
 W3C	
 News	
 -	
 07
  February	
 2013
HTML	
 Microdata
HTML	
 Microdata	
 Nightly
microdata
<div itemscope itemtype="http://data-vocabulary.org/Person">
 私の名前は<span itemprop="name">ひらい さだあき</span>ですが、
 みんなから「<span itemprop="nickname">さだ</span>」と呼ばれています。
 私のホームページは、
 <a href="http://sadah.github.com" itemprop="url">sadah.github.com</a> です
。
 鎌倉に住んでおり、<span itemprop="title">エンジニア</span>として
 <span itemprop="affiliation">カカクコム</span>に勤めています。
</div>

                         Sample:	
 microdata
microdata	
 /	
 RDFa

Home	
 -	
 schema.org
microdata	
             	
 -	
 Google
      	
             	
 -	
      	
 -	
 Google
      	
             	
 -	
               	
 -	
 Google
Google	
 Structured	
 Data	
 Testing	
 Tool
MediaQueries

World	
 Wide	
 Web	
 Consortium	
 (W3C)
                         Microsoft	
 Japan
NTT
MediaQueries
@media screen and (max-width: 479px) {
  .media-test { color: red; }
}
@media screen and (min-width: 480px) and (max-width: 1023px) {
  .media-test { color: blue; }
}
@media screen and (min-width: 1024px) {
  .media-test { color: green;}
}

                      Sample:	
 MediaQueries
                      sadah.github.com
MediaQueries

CSS
MediaQueries

     Web


PC
MediaQueries



MediaQueries
MediaQueries
bookmarklet	
 
Media	
 Queries
Viewport	
 Resizer
Responsive	
 Design	
 Testing
Spec	
 :	
  Media	
 Queries	
 W3C	
 REC
Check

BrowserStack
  modern.IE
Adobe®	
 BrowserLab
WebFonts

DevTools
BEAMS
NTT
FONTPLUS
WebFonts

sadah.github.com
Google	
 Web	
 Fonts	
 Compare
WebFonts
/* using Google Web Fonts */
@font-face {
  font-family: 'Allerta Stencil';
  src: url(http://themes.googleusercontent.com/static/fonts/allertastencil/v4/Cd
SZfRtHbQrBohqmzSdDYKqcRvMv63bhrwdN_8Hu8N8.woff) format('woff');
}

.webfonts{
  font-family: 'Allerta Stencil', sans-serif;
}

                   Sample:	
 WebFonts
                                                Web	
 Fonts   	
    IT
WebFonts
        	
 Extension	
 
Chrome	
 -	
 WhatFont
Chrome	
 -	
 Google	
 Font	
 Previewer	
 for	
 Chrome
Canvas
Canvas	
  GoogleMaps
          Thanks	
 komasshu	
 !


                      	
 /	
 Google	
 Maps
                               	
 -	
 WSJ
   Spec	
 :	
  HTML	
 Canvas	
 2D	
 Context
Canvas
var ctx = $("#canvas-area")[0].getContext("2d");
// x, y, radius, startAngle, endAngle [, anticlockwise ] )
ctx.arc(200, 100, 50, 0, Math.PI*2, false);
ctx.stroke();

Sample:	
 Canvas
Sample:	
 getUserMedia	
 +	
 Canvas	
 +	
 Video	
 +	
 data	
 URL
Scheme	
 +	
 FullScreen	
 API
Canvas	
 +	
 WebFonts
  ctx.fillStyle = "navy";
  ctx.font = "72px 'Cabin Sketch', cursive";
  ctx.fillText("WebFonts", 200 , 50);

 Sample:	
 Canvas	
 +	
 WebFonts
Canvas WebFonts                                	
 WebFonts


 1
WebFonts
              WebFont	
 Loader	
 
WebFontConfig = { google: { families: [ 'Tangerine', 'Cantarell' ] } };
(function() {
 var wf = document.createElement('script');
 wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
    '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
 wf.type = 'text/javascript';
 wf.async = 'true';
 var s = document.getElementsByTagName('script')[0];
 s.parentNode.insertBefore(wf, s);
})();

             WebFont	
 Loader	
 -	
 Google	
 Web	
 Fonts
CSS	
 Fonts	
 Module	
 Level	
 3
W3C	
 Working	
 Draft	
 12	
 February	
 2013
 9.2	
 The	
 FontLoader	
 Interface
W3C	
 Working	
 Draft	
 11	
 December	
 2012
     9.2	
 The	
 FontLoader	
 Interface
CSS	
 Fonts	
 Module	
 Level	
 3,	
 CSS	
 Transitions	
 Drafts	
 Published	
 -	
 W3C	
 News
9.2	
 The	
 FontLoader	
 Interface
dictionary LoadFontParameters {
 DOMString font;
 DOMString text = " ";
 FontsReadyCallback onsuccess;
 FontsReadyCallback onerror;
};

// check and start load if appropriate
// and fire callback when all loads complete
void loadFont(LoadFontParameters params);
Performance
Navigation	
 Timing
   Navigation	
 Timing	
 (W3c	
 REC)
   Navigation	
 Timing	
 2
link	
 prefetch	
    	
 script	
 defer	
 async	
 
   4.12	
 Links	
 —	
 HTML5
   4.3	
 Scripting	
 —	
 HTML5
data	
 URL	
 Scheme	
 
   RFC	
 2397	
 -	
 The	
 "data"	
 URL	
 scheme
Performance
HTTP1.1                                     …
    minify	
 /	
 gzip

    CDN
                	
 Request	
 
                                	
    	
    IT
Performance
Pingdom	
 Tools	
 :	
 tabelog.com
WebPagetest	
 Test	
 Result	
 -	
 Tokyo	
 :	
 tabelog.com
Request	
    …
Performance
HTML5                     HTTP	
 2.0	
      	
 SPDY	
 
  Hypertext	
 Transfer	
 Protocol	
 version	
 2.0	
 /	
 IETF
  SPDY	
 -	
 The	
 Chromium	
 Projects
  SPDY	
 Protocol	
 /	
 IETF
“
                       HTTP
                                 TLS
                              SPDY



SPDY	
 -	
 Wikipedia

”
Multiplexed	
 streams
            Request	
 prioritization
    HTTP	
 header	
 compression
SPDY:	
 An	
 experimental	
 protocol	
 for	
 a	
 faster	
 web	
 -	
 The	
 Chromium	
 Projects
html5	
 -	
 Google
SSL



SPDY	
 Performance	
 on	
 Mobile	
 Networks
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
SPDY HTTP	
 
CDN	
  	
 SPDY	
  	
 HTTP	
 2.0
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
HTML5(   )
2013
Web
HTML5.1
navigationController
     template
      Offline
HTML5	
 Markup
microdata	
 /	
 RDFa
WebFonts,	
 Canvas
SPDY	
 /	
 HTTP	
 2.0
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
HTML5                MediaQueries


        	
 cena
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
“	
 




       :	
    	
 
                    	
 ”
HTML5
Happy
	
 Happy
Happy
     	
 Happy	
 

HTML5	
 
HTML5
The	
 End
  It	
 is	
 not	
 HTML5.	
 but	
 ...
    Thank	
 you	
 so	
 mach.
http://bit.ly/h5study36sadah
            @sada_h

More Related Content

What's hot (20)

HTML5
HTML5HTML5
HTML5
Hatem Mahmoud
 
HTML5 and Search Engine Optimization (SEO)
HTML5 and Search Engine Optimization (SEO)HTML5 and Search Engine Optimization (SEO)
HTML5 and Search Engine Optimization (SEO)
Performics.Convonix
 
Google’s PRPL Web development pattern
Google’s PRPL Web development patternGoogle’s PRPL Web development pattern
Google’s PRPL Web development pattern
Jeongkyu Shin
 
Ie9 dev overview (300) beta
Ie9 dev overview (300) betaIe9 dev overview (300) beta
Ie9 dev overview (300) beta
Kirk Yamamoto
 
New Elements & Features in HTML5
New Elements & Features in HTML5New Elements & Features in HTML5
New Elements & Features in HTML5
Jamshid Hashimi
 
Startup eng-camp 3
Startup eng-camp 3Startup eng-camp 3
Startup eng-camp 3
Jollen Chen
 
HTML5 Introduction
HTML5 IntroductionHTML5 Introduction
HTML5 Introduction
dynamis
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
Nathan Smith
 
Keypoints html5
Keypoints html5Keypoints html5
Keypoints html5
dynamis
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web Development
Tilak Joshi
 
HTML5 for PHP Developers - IPC
HTML5 for PHP Developers - IPCHTML5 for PHP Developers - IPC
HTML5 for PHP Developers - IPC
Mayflower GmbH
 
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
 
Using Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the WebUsing Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the Web
philogb
 
HTML5 Video
HTML5 VideoHTML5 Video
HTML5 Video
Péter Nagy
 
Making HTML5 Work Everywhere
Making HTML5 Work EverywhereMaking HTML5 Work Everywhere
Making HTML5 Work Everywhere
Todd Anglin
 
課程名稱:八屏一雲時代來臨 教你HTML5六小時打通(3)
課程名稱:八屏一雲時代來臨 教你HTML5六小時打通(3)課程名稱:八屏一雲時代來臨 教你HTML5六小時打通(3)
課程名稱:八屏一雲時代來臨 教你HTML5六小時打通(3)
Jollen Chen
 
HTML5 Tutorial
HTML5 TutorialHTML5 Tutorial
HTML5 Tutorial
Avinash Malhotra
 
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]
Aaron Gustafson
 
Introduccion a HTML5
Introduccion a HTML5Introduccion a HTML5
Introduccion a HTML5
Pablo Garaizar
 
Html5 and-css3-overview
Html5 and-css3-overviewHtml5 and-css3-overview
Html5 and-css3-overview
Jacob Nelson
 
HTML5 and Search Engine Optimization (SEO)
HTML5 and Search Engine Optimization (SEO)HTML5 and Search Engine Optimization (SEO)
HTML5 and Search Engine Optimization (SEO)
Performics.Convonix
 
Google’s PRPL Web development pattern
Google’s PRPL Web development patternGoogle’s PRPL Web development pattern
Google’s PRPL Web development pattern
Jeongkyu Shin
 
Ie9 dev overview (300) beta
Ie9 dev overview (300) betaIe9 dev overview (300) beta
Ie9 dev overview (300) beta
Kirk Yamamoto
 
New Elements & Features in HTML5
New Elements & Features in HTML5New Elements & Features in HTML5
New Elements & Features in HTML5
Jamshid Hashimi
 
Startup eng-camp 3
Startup eng-camp 3Startup eng-camp 3
Startup eng-camp 3
Jollen Chen
 
HTML5 Introduction
HTML5 IntroductionHTML5 Introduction
HTML5 Introduction
dynamis
 
Keypoints html5
Keypoints html5Keypoints html5
Keypoints html5
dynamis
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web Development
Tilak Joshi
 
HTML5 for PHP Developers - IPC
HTML5 for PHP Developers - IPCHTML5 for PHP Developers - IPC
HTML5 for PHP Developers - IPC
Mayflower GmbH
 
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
 
Using Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the WebUsing Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the Web
philogb
 
Making HTML5 Work Everywhere
Making HTML5 Work EverywhereMaking HTML5 Work Everywhere
Making HTML5 Work Everywhere
Todd Anglin
 
課程名稱:八屏一雲時代來臨 教你HTML5六小時打通(3)
課程名稱:八屏一雲時代來臨 教你HTML5六小時打通(3)課程名稱:八屏一雲時代來臨 教你HTML5六小時打通(3)
課程名稱:八屏一雲時代來臨 教你HTML5六小時打通(3)
Jollen Chen
 
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]
Aaron Gustafson
 
Html5 and-css3-overview
Html5 and-css3-overviewHtml5 and-css3-overview
Html5 and-css3-overview
Jacob Nelson
 

Similar to It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える (20)

Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Sadaaki HIRAI
 
HTML5 & Web Platform
HTML5 & Web PlatformHTML5 & Web Platform
HTML5 & Web Platform
SwapSkills
 
HTML5 Intoduction for Web Developers
HTML5 Intoduction for Web DevelopersHTML5 Intoduction for Web Developers
HTML5 Intoduction for Web Developers
Sascha Corti
 
HTML5 어디까지 왔나?
HTML5 어디까지 왔나?HTML5 어디까지 왔나?
HTML5 어디까지 왔나?
정현 황
 
HTML5 and web platform
HTML5 and web platformHTML5 and web platform
HTML5 and web platform
dynamis
 
Change by HTML5
Change by HTML5Change by HTML5
Change by HTML5
dynamis
 
HTML5 Technical Executive Summary
HTML5 Technical Executive SummaryHTML5 Technical Executive Summary
HTML5 Technical Executive Summary
Gilad Khen
 
East of Toronto .NET Usergroup - Put the 5 in HTML
East of Toronto .NET Usergroup - Put the 5 in HTMLEast of Toronto .NET Usergroup - Put the 5 in HTML
East of Toronto .NET Usergroup - Put the 5 in HTML
Frédéric Harper
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5
soft-shake.ch
 
HTML5: An Overview
HTML5: An OverviewHTML5: An Overview
HTML5: An Overview
Nagendra Um
 
HTML5のご紹介
HTML5のご紹介HTML5のご紹介
HTML5のご紹介
yoshikawa_t
 
Dive Into HTML5
Dive Into HTML5Dive Into HTML5
Dive Into HTML5
Doris Chen
 
HTML5 and Beyond
HTML5 and BeyondHTML5 and Beyond
HTML5 and Beyond
dynamis
 
html5 an introduction
html5 an introductionhtml5 an introduction
html5 an introduction
vrt-medialab
 
Html5 public
Html5 publicHtml5 public
Html5 public
doodlemoonch
 
Html5 more than just html5 v final
Html5  more than just html5 v finalHtml5  more than just html5 v final
Html5 more than just html5 v final
Lohith Goudagere Nagaraj
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
Panagiotis Grigoropoulos
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
GreekTuts Ελληνικά Βοηθήματα
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWeb
George Kanellopoulos
 
Front end for back end developers
Front end for back end developersFront end for back end developers
Front end for back end developers
Wojciech Bednarski
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Sadaaki HIRAI
 
HTML5 & Web Platform
HTML5 & Web PlatformHTML5 & Web Platform
HTML5 & Web Platform
SwapSkills
 
HTML5 Intoduction for Web Developers
HTML5 Intoduction for Web DevelopersHTML5 Intoduction for Web Developers
HTML5 Intoduction for Web Developers
Sascha Corti
 
HTML5 어디까지 왔나?
HTML5 어디까지 왔나?HTML5 어디까지 왔나?
HTML5 어디까지 왔나?
정현 황
 
HTML5 and web platform
HTML5 and web platformHTML5 and web platform
HTML5 and web platform
dynamis
 
Change by HTML5
Change by HTML5Change by HTML5
Change by HTML5
dynamis
 
HTML5 Technical Executive Summary
HTML5 Technical Executive SummaryHTML5 Technical Executive Summary
HTML5 Technical Executive Summary
Gilad Khen
 
East of Toronto .NET Usergroup - Put the 5 in HTML
East of Toronto .NET Usergroup - Put the 5 in HTMLEast of Toronto .NET Usergroup - Put the 5 in HTML
East of Toronto .NET Usergroup - Put the 5 in HTML
Frédéric Harper
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5
soft-shake.ch
 
HTML5: An Overview
HTML5: An OverviewHTML5: An Overview
HTML5: An Overview
Nagendra Um
 
HTML5のご紹介
HTML5のご紹介HTML5のご紹介
HTML5のご紹介
yoshikawa_t
 
Dive Into HTML5
Dive Into HTML5Dive Into HTML5
Dive Into HTML5
Doris Chen
 
HTML5 and Beyond
HTML5 and BeyondHTML5 and Beyond
HTML5 and Beyond
dynamis
 
html5 an introduction
html5 an introductionhtml5 an introduction
html5 an introduction
vrt-medialab
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWeb
George Kanellopoulos
 
Front end for back end developers
Front end for back end developersFront end for back end developers
Front end for back end developers
Wojciech Bednarski
 
Ad

More from Sadaaki HIRAI (7)

Prottを支えるチームと技術
Prottを支えるチームと技術Prottを支えるチームと技術
Prottを支えるチームと技術
Sadaaki HIRAI
 
Goodpatch Berlin Report
Goodpatch Berlin ReportGoodpatch Berlin Report
Goodpatch Berlin Report
Sadaaki HIRAI
 
Make the Prott Faster
Make the Prott FasterMake the Prott Faster
Make the Prott Faster
Sadaaki HIRAI
 
チームでつくるUIデザイン
チームでつくるUIデザインチームでつくるUIデザイン
チームでつくるUIデザイン
Sadaaki HIRAI
 
いま使われているHTML5と、これからのHTML5
いま使われているHTML5と、これからのHTML5いま使われているHTML5と、これからのHTML5
いま使われているHTML5と、これからのHTML5
Sadaaki HIRAI
 
Java & HTML5 History
Java & HTML5 HistoryJava & HTML5 History
Java & HTML5 History
Sadaaki HIRAI
 
はじめてのEmmet with Sublime Text2
はじめてのEmmet with Sublime Text2はじめてのEmmet with Sublime Text2
はじめてのEmmet with Sublime Text2
Sadaaki HIRAI
 
Prottを支えるチームと技術
Prottを支えるチームと技術Prottを支えるチームと技術
Prottを支えるチームと技術
Sadaaki HIRAI
 
Goodpatch Berlin Report
Goodpatch Berlin ReportGoodpatch Berlin Report
Goodpatch Berlin Report
Sadaaki HIRAI
 
Make the Prott Faster
Make the Prott FasterMake the Prott Faster
Make the Prott Faster
Sadaaki HIRAI
 
チームでつくるUIデザイン
チームでつくるUIデザインチームでつくるUIデザイン
チームでつくるUIデザイン
Sadaaki HIRAI
 
いま使われているHTML5と、これからのHTML5
いま使われているHTML5と、これからのHTML5いま使われているHTML5と、これからのHTML5
いま使われているHTML5と、これからのHTML5
Sadaaki HIRAI
 
Java & HTML5 History
Java & HTML5 HistoryJava & HTML5 History
Java & HTML5 History
Sadaaki HIRAI
 
はじめてのEmmet with Sublime Text2
はじめてのEmmet with Sublime Text2はじめてのEmmet with Sublime Text2
はじめてのEmmet with Sublime Text2
Sadaaki HIRAI
 
Ad

It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える

  • 1. It is not HTML5. but ... HTML5 HTML5 36 HTML5 - 2013/02/18 @sada_h
  • 2. sadah.github.com / @sada_h / techlog html5j / HTML5 , Born in 1981. Ruby / Rails / HTML5 / JavaScript / Java Kakaku.com, Inc. Engineer 2012/08 [ ] [cena( )]
  • 12. HTML5
  • 14. HTML5 Markup HTML5 Apple LAWSON UNITED ARROWS LTD. BEAMS Specs : HTML5 / HTML 5.1
  • 15. HTML5 Markup html5shiv createElement <!--[if lt IE 9]> <script src="dist/html5shiv.js"></script> <![endif]--> elements = "abbr article aside audio bdi canvas data datalist details figcaption figu re footer header hgroup mark meter nav output progress section summary time vi deo".split(" "); for(var i=0; i<elements.length; i++){ document.createElement(elements[i]); } Sample: HTML5 fall back Sample
  • 16. microdata / RDFa microdata RDFa Barack Obama Home - schema.org - Google Google Structured Data Testing Tool
  • 17. microdata / RDFa Specs HTML+RDFa 1.1 Last Call: HTML+RDFa 1.1 - W3C News - 07 February 2013 HTML Microdata HTML Microdata Nightly
  • 18. microdata <div itemscope itemtype="http://data-vocabulary.org/Person"> 私の名前は<span itemprop="name">ひらい さだあき</span>ですが、 みんなから「<span itemprop="nickname">さだ</span>」と呼ばれています。 私のホームページは、 <a href="http://sadah.github.com" itemprop="url">sadah.github.com</a> です 。 鎌倉に住んでおり、<span itemprop="title">エンジニア</span>として <span itemprop="affiliation">カカクコム</span>に勤めています。 </div> Sample: microdata
  • 19. microdata / RDFa Home - schema.org microdata - Google - - Google - - Google Google Structured Data Testing Tool
  • 20. MediaQueries World Wide Web Consortium (W3C) Microsoft Japan NTT
  • 21. MediaQueries @media screen and (max-width: 479px) { .media-test { color: red; } } @media screen and (min-width: 480px) and (max-width: 1023px) { .media-test { color: blue; } } @media screen and (min-width: 1024px) { .media-test { color: green;} } Sample: MediaQueries sadah.github.com
  • 23. MediaQueries Web PC
  • 25. MediaQueries bookmarklet Media Queries Viewport Resizer Responsive Design Testing Spec : Media Queries W3C REC
  • 29. WebFonts /* using Google Web Fonts */ @font-face { font-family: 'Allerta Stencil'; src: url(http://themes.googleusercontent.com/static/fonts/allertastencil/v4/Cd SZfRtHbQrBohqmzSdDYKqcRvMv63bhrwdN_8Hu8N8.woff) format('woff'); } .webfonts{ font-family: 'Allerta Stencil', sans-serif; } Sample: WebFonts Web Fonts IT
  • 30. WebFonts Extension Chrome - WhatFont Chrome - Google Font Previewer for Chrome
  • 31. Canvas Canvas GoogleMaps Thanks komasshu ! / Google Maps - WSJ Spec : HTML Canvas 2D Context
  • 32. Canvas var ctx = $("#canvas-area")[0].getContext("2d"); // x, y, radius, startAngle, endAngle [, anticlockwise ] ) ctx.arc(200, 100, 50, 0, Math.PI*2, false); ctx.stroke(); Sample: Canvas Sample: getUserMedia + Canvas + Video + data URL Scheme + FullScreen API
  • 33. Canvas + WebFonts ctx.fillStyle = "navy"; ctx.font = "72px 'Cabin Sketch', cursive"; ctx.fillText("WebFonts", 200 , 50); Sample: Canvas + WebFonts Canvas WebFonts WebFonts 1
  • 34. WebFonts WebFont Loader WebFontConfig = { google: { families: [ 'Tangerine', 'Cantarell' ] } }; (function() { var wf = document.createElement('script'); wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; wf.type = 'text/javascript'; wf.async = 'true'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wf, s); })(); WebFont Loader - Google Web Fonts
  • 35. CSS Fonts Module Level 3 W3C Working Draft 12 February 2013 9.2 The FontLoader Interface W3C Working Draft 11 December 2012 9.2 The FontLoader Interface CSS Fonts Module Level 3, CSS Transitions Drafts Published - W3C News
  • 36. 9.2 The FontLoader Interface dictionary LoadFontParameters { DOMString font; DOMString text = " "; FontsReadyCallback onsuccess; FontsReadyCallback onerror; }; // check and start load if appropriate // and fire callback when all loads complete void loadFont(LoadFontParameters params);
  • 37. Performance Navigation Timing Navigation Timing (W3c REC) Navigation Timing 2 link prefetch script defer async 4.12 Links — HTML5 4.3 Scripting — HTML5 data URL Scheme RFC 2397 - The "data" URL scheme
  • 38. Performance HTTP1.1 … minify / gzip CDN Request IT
  • 39. Performance Pingdom Tools : tabelog.com WebPagetest Test Result - Tokyo : tabelog.com
  • 40. Request
  • 41. Performance HTML5 HTTP 2.0 SPDY Hypertext Transfer Protocol version 2.0 / IETF SPDY - The Chromium Projects SPDY Protocol / IETF
  • 42. HTTP TLS SPDY SPDY - Wikipedia ”
  • 43. Multiplexed streams Request prioritization HTTP header compression SPDY: An experimental protocol for a faster web - The Chromium Projects
  • 45. SSL SPDY Performance on Mobile Networks
  • 47. SPDY HTTP CDN SPDY HTTP 2.0
  • 49. HTML5( )
  • 51. HTML5.1 navigationController template Offline
  • 52. HTML5 Markup microdata / RDFa WebFonts, Canvas SPDY / HTTP 2.0
  • 56. HTML5 MediaQueries cena
  • 58. : ”
  • 59. HTML5
  • 61. Happy Happy HTML5 HTML5
  • 62. The End It is not HTML5. but ... Thank you so mach. http://bit.ly/h5study36sadah @sada_h