SlideShare a Scribd company logo
SIGONG media
스마트연구소
안 상 길    대 리
2012 . 07 . 18
HTML5 API ,

  HOW IS SUPPORTED
                BROWSER?

          AND Mobile
목차
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
TypeName   Browser Type
1. FROM Element
목차
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
Input type Extends function
HTML5 has several new input types for forms. These new
features allow better input control and validation.




Example

 Input Type : COLOR

 <input type=“color” name=“favcolor” />


TypeName                        Supproted


Color                             X       X   O      X   O
Date                              X       X   O      O   O
Datetime                          X       X   O      O   O
TypeName         Supproted


Datetime-local     X     X   O   O   O
Email              X     O   O   X   O
Month              X     X   O   O   O
Number             X     X   O   O   O
reange             X     X   O   O   O
Search             X     X   O   O   X
Tel                X     X   X   X   X
Time               X     X   O   O   O
url                X     O   O   X   O
Week               X     X   O   O   O
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
2. Video / DOM
Video Tag
HTML5 defines a new element which specifies a standard way
to embed a video/movie on a web page: the <video> element.
Example

 <video width="320" height="240" controls="controls">
   <source src="movie.mp4" type="video/mp4" />
   <source src="movie.ogg" type="video/ogg" />
   Your browser does not support the video tag.
 </video>


Video Formats And Browser Support

     Browser          MP4           WebM             Ogg
Internet Explorer 9   Yse             No                No
Firefox 4.0           No             Yse             Yse
Google Chrome 6       Yse            Yse             Yse
Apple Safari 5        Yse             No                No
Opera 10.6            No             Yse             Yse
Video Tag
HTML5 defines a new element which specifies a standard way
to embed a video/movie on a web page: the <video> element.
Example

 <video width="320" height="240" controls="controls">
   <source src="movie.mp4" type="video/mp4" />
   <source src="movie.ogg" type="video/ogg" />
   Your browser does not support the video tag.
 </video>


Video Formats And Browser Support

     Browser          MP4           WebM             Ogg
Internet Explorer 9   Yse             No                No
Firefox 4.0           No             Yse             Yse
Google Chrome 6       Yse            Yse             Yse
Apple Safari 5        Yse             No                No
Opera 10.6            No             Yse             Yse
Video Tag

Test link page : http://html5demos.com/video


                       :Web Browser     :Mobile Browser
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
3. Audio
Audio Tag
defines a new element which specifies a standard way to
embed an audio file on a web page: the <audio> element.
Example

 <audio controls="controls">
   <source src="song.ogg" type="audio/ogg" />
   <source src="song.mp3" type="audio/mpeg" />
   Your browser does not support the audio element.
 </audio>


Audio Formats And Browser Support

     Browser          MP4           WebM              Ogg
Internet Explorer 9   Yse             No              No
Firefox 4.0           No             Yse              Yse
Google Chrome 6       Yse            Yse              Yse
Apple Safari 5        Yse             No              No
Opera 10.6            No             Yse              Yse
Audio Tag

Link Page : http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_audio_all


                         :Web Browser       :Mobile Browser
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
4. Drag and Drop
Drag and Drop
개체를 다른 위치로 이동시키는 일반적인 기능, 표준으로 재정 되고 있으나 어떠한
속성은 draggable 될 가능성이 있음.

Browser Support

      Browser                   Yes/No
 Internet Explorer 9              Yse
 Firefox 4.0                      Yse
 Google Chrome 6                  Yse
 Apple Safari 5                   Yse
 Opera 10.6                       Yse

 Note : Internet Explorer 8 및 이전 버전에서는 지원 하지 않음


Make an Element Draggable
 First of all: To make an element draggable, set the draggable attribute to true:


 <img draggable="true" />
Drag and Drop
Example Code

 <!DOCTYPE HTML>
 <html>
 <head>
 <style type="text/css">
 #div1 {width:350px;height:70px;padding:10px;border:1px solid #aaaaaa;}
 </style>
 <script type="text/javascript">
 function allowDrop(ev) {
                    ev.preventDefault();
 }

 function drag(ev) {
                    ev.dataTransfer.setData("text",ev.target.id);
 }

 function drop(ev) {
                    ev.preventDefault();
                    var data=ev.dataTransfer.getData("Text");
                    ev.target.appendChild(document.getElementById(data));
 }
 </script>
 </head>
 <body>

           <p>Drag the W3Schools image into the rectangle:</p>

           <div id="div1" ondrop="drop(event)" ondragover="allowDrop(event)"></div>
           <br />
           <img id="drag1" src="img_logo.gif" draggable="true" ondragstart="drag(event)" width="336" height="69" />

           </body>
 </html>




                 Link Page : http://html5demos.com/drag
Drag and Drop

                :Web Browser   :Mobile Browser
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
5. Canvas
Canvas
HTML5 Canvas Element is web page use to draw graphics
하나의 캔버스는 사각형구역이며, 그픽셀 하나하나를 제어 할 수 있습니다.

Browser Support

      Browser          Yes/No
 Internet Explorer 9     Yse
 Firefox 4.0             Yse
 Google Chrome 6         Yse
 Apple Safari 5          Yse
 Opera 10.6              Yse

 Note : Internet Explorer 8 및 이전 버전에서는 지원 하지 않음
Canvas
Example Code

Create a Canvas
 Canvas Element 를 이용한 그리기 width, height 를 이용함


 <canvas id="myCanvas" width="200" height="100"></canvas>

Draw With JavaScript
 JavaScript를 이용한 그리기

 <script type="text/javascript">
         var c=document.getElementById("myCanvas");
         var ctx=c.getContext("2d");
         ctx.fillStyle="#FF0000";
         ctx.fillRect(0,0,150,75);
 </script>




         Link Page : http://paperjs.org/examples/hit-testing/
                      http://slides.html5rocks.com/#canvas-2d-example
Canvas

         :Web Browser   :Mobile Browser
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
6. GeoLocation
GeoLocation
HTML5 Geolocation API is used to get the georaphical position of a
user. (단,개인정보이기 때문에 사용자가 승인한 경우만 사용할 수 있습니다.)

Browser Support

      Browser             Yes/No
 Internet Explorer 9       Yse
 Firefox 4.0               Yse
 Google Chrome 6           Yse
 Apple Safari 5            Yse
 Opera 10.6                Yse

 Note : Internet Explorer 8 및 이전 버전에서는 지원 하지 않음




         Link Page : http://html5demos.com/geo
                  http://slides.html5rocks.com/#geolocation
GeoLocation

              :Web Browser   :Mobile Browser
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
7. Web Storage
Web Storage
With HTML5, web pages can store data locally within the user's browser.


Browser Support

      Browser                 Yes/No
 Internet Explorer 8            Yse
 Firefox 4.0                    Yse
 Google Chrome 6                Yse
 Apple Safari 5                 Yse
 Opera 10.6                     Yse

 Note : Internet Explorer 7 및 이전 버전에서는 지원 하지 않음




          Link Page :        http://www.
Web Storage
Example Code
Storage,check browser support for localStorage&sessionStorage
 LocalStorage/SessionStorage 확인


 if(typeof(Storage)!=="undefined“) {
   // Yes! localStorage and sessionStorage support!
   // Some code.....
 } else {
   // Sorry! No web storage support..
 }


 <!DOCTYPE html>
 <html>
 <body>

 <div id="result"></div>
 <script>
 if(typeof(Storage)!=="undefined“) {
   localStorage.lastname="Smith";
   document.getElementById("result").innerHTML="Last name: " + localStorage.lastname;
 } else {
   document.getElementById("result").innerHTML="Sorry, your browser does not support web storage...";
 }
 </script>

 </body>
 </html>



            Link Page :               http://slides.html5rocks.com/#web-storage
Web Storage

              :Web Browser   :Mobile Browser
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
8. App cache
App Cache
HTML5에서는 Cache를 개발자에 의해 임의적인 Control 이 가능


Browser Support

      Browser             Yes/No
 Internet Explorer          No
 Firefox 4.0                Yse
 Google Chrome 6            Yse
 Apple Safari 5             Yse
 Opera 10.6                 Yse

 Note : Internet Explorer 지원 하지 않음




         Link Page :     http://slides.html5rocks.com/#app-cache
App Cache

            :Web Browser   :Mobile Browser
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
9. Web Worker
Web Worker
JavaScript 구동 시에 JS 파일을 background 에서 독립적으로 Once Thread 에
서 Multi Thread 로 구동 할 수 있다.

Browser Support

      Browser          Yes/No
 Internet Explorer       No
 Firefox 4.0             Yse
 Google Chrome 6         Yse
 Apple Safari 5          Yse
 Opera 10.6              Yse

 Note : Internet Explorer 지원 하지 않음
      실행 할 때는 JS파일로 만들어서 사용해야 함




         Link Page :   http://www.
Web Worker

             :Web Browser   :Mobile Browser
1. FROMS
2. Video / DOM
3. Audio
4. Drag and Drop
5. Canvas
6. Geolocation
7. Web Storage
8. App Cache
9. Web Workers
10.SSE(Server Sent Event)
10. Server Sent Event
Server Sent Event
사용자의 웹페이를 자동 업데이트 하기 위한 기능


Browser Support

      Browser             Yes/No
 Internet Explorer          No
 Firefox 4.0                Yse
 Google Chrome 6            Yse
 Apple Safari 5             Yse
 Opera 10.6                 Yse

 Note : Internet Explorer 지원 하지 않음




         Link Page :     http://www.
Server Sent Event

                    :Web Browser   :Mobile Browser
Etc. 부록
Canvas VS SVG
부록. Canvas VS SVG
           Canvas                            SVG
        해상도 의존적                         해상도에 독립적
     Event Handler 지원안함                Event Handler 지원
     좋지않은 덱스트 렌더링                 거대한 렌더링이 필요한 어플리케이션에
                                        적합(google Map)
   결과를 png나 jpg로 저장가능               복작해질경우 랜더링이 느림
많은 객체가 주주 다시 그려져야 함으로               게임어플리 케이션으로 부적함
    그래픽 집약적인것에 적함




     Link Page :    http://www.
Reference Site List
http://slides.html5rocks.com
*
http://html5please.com/
http://www.html5rocks.com/en/
*
http://caniuse.com/#search=canvas
*
http://html5demos.com/
http://html5test.com
http://www.w3schools.com/


Sample Source Code Link
https://github.com/mycup/html5Lab
Thank You.

More Related Content

What's hot

Html5 intro
Html5 introHtml5 intro
Html5 intro
Kevin DeRudder
 
What you need to know bout html5
What you need to know bout html5What you need to know bout html5
What you need to know bout html5
Kevin DeRudder
 
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
Patrick Lauke
 
Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~
Sho Ito
 
HTML 5 - Overview
HTML 5 - OverviewHTML 5 - Overview
HTML 5 - Overview
Marcelio Leal
 
HTML5 multimedia - browser-native video, audio and canvas - meet.js Summit / ...
HTML5 multimedia - browser-native video, audio and canvas - meet.js Summit / ...HTML5 multimedia - browser-native video, audio and canvas - meet.js Summit / ...
HTML5 multimedia - browser-native video, audio and canvas - meet.js Summit / ...
Patrick Lauke
 
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJRealize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
Leonardo Balter
 
JavaScript Performance (at SFJS)
JavaScript Performance (at SFJS)JavaScript Performance (at SFJS)
JavaScript Performance (at SFJS)
Steve Souders
 
[jqconatx] Adaptive Images for Responsive Web Design
[jqconatx] Adaptive Images for Responsive Web Design[jqconatx] Adaptive Images for Responsive Web Design
[jqconatx] Adaptive Images for Responsive Web Design
Christopher Schmitt
 
Joomla Day Austin Part 4
Joomla Day Austin Part 4Joomla Day Austin Part 4
Joomla Day Austin Part 4
Kyle Ledbetter
 
Mobile app with sencha touch
Mobile app with sencha touchMobile app with sencha touch
Mobile app with sencha touch
fch415
 
Progressive Enhancement
Progressive EnhancementProgressive Enhancement
Progressive Enhancement
Zach Leatherman
 
Google I/O 2012 - Protecting your user experience while integrating 3rd party...
Google I/O 2012 - Protecting your user experience while integrating 3rd party...Google I/O 2012 - Protecting your user experience while integrating 3rd party...
Google I/O 2012 - Protecting your user experience while integrating 3rd party...
Patrick Meenan
 
HTML5 JS APIs
HTML5 JS APIsHTML5 JS APIs
HTML5 JS APIs
Remy Sharp
 
Sencha Touch e PhoneGap: SouJava - IBM Maio 2013
Sencha Touch e PhoneGap: SouJava - IBM Maio 2013Sencha Touch e PhoneGap: SouJava - IBM Maio 2013
Sencha Touch e PhoneGap: SouJava - IBM Maio 2013
Loiane Groner
 
S314011 - Developing Composite Applications for the Cloud with Apache Tuscany
S314011 - Developing Composite Applications for the Cloud with Apache TuscanyS314011 - Developing Composite Applications for the Cloud with Apache Tuscany
S314011 - Developing Composite Applications for the Cloud with Apache Tuscany
Luciano Resende
 
HTML5 Intro
HTML5 IntroHTML5 Intro
HTML5 Intro
PavingWays Ltd.
 
Building an HTML5 Video Player
Building an HTML5 Video PlayerBuilding an HTML5 Video Player
Building an HTML5 Video Player
Jim Jeffers
 
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
Caelum
 
Web Apps
Web AppsWeb Apps
Web Apps
Tim Wray
 

What's hot (20)

Html5 intro
Html5 introHtml5 intro
Html5 intro
 
What you need to know bout html5
What you need to know bout html5What you need to know bout html5
What you need to know bout html5
 
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
 
Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~
 
HTML 5 - Overview
HTML 5 - OverviewHTML 5 - Overview
HTML 5 - Overview
 
HTML5 multimedia - browser-native video, audio and canvas - meet.js Summit / ...
HTML5 multimedia - browser-native video, audio and canvas - meet.js Summit / ...HTML5 multimedia - browser-native video, audio and canvas - meet.js Summit / ...
HTML5 multimedia - browser-native video, audio and canvas - meet.js Summit / ...
 
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJRealize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
 
JavaScript Performance (at SFJS)
JavaScript Performance (at SFJS)JavaScript Performance (at SFJS)
JavaScript Performance (at SFJS)
 
[jqconatx] Adaptive Images for Responsive Web Design
[jqconatx] Adaptive Images for Responsive Web Design[jqconatx] Adaptive Images for Responsive Web Design
[jqconatx] Adaptive Images for Responsive Web Design
 
Joomla Day Austin Part 4
Joomla Day Austin Part 4Joomla Day Austin Part 4
Joomla Day Austin Part 4
 
Mobile app with sencha touch
Mobile app with sencha touchMobile app with sencha touch
Mobile app with sencha touch
 
Progressive Enhancement
Progressive EnhancementProgressive Enhancement
Progressive Enhancement
 
Google I/O 2012 - Protecting your user experience while integrating 3rd party...
Google I/O 2012 - Protecting your user experience while integrating 3rd party...Google I/O 2012 - Protecting your user experience while integrating 3rd party...
Google I/O 2012 - Protecting your user experience while integrating 3rd party...
 
HTML5 JS APIs
HTML5 JS APIsHTML5 JS APIs
HTML5 JS APIs
 
Sencha Touch e PhoneGap: SouJava - IBM Maio 2013
Sencha Touch e PhoneGap: SouJava - IBM Maio 2013Sencha Touch e PhoneGap: SouJava - IBM Maio 2013
Sencha Touch e PhoneGap: SouJava - IBM Maio 2013
 
S314011 - Developing Composite Applications for the Cloud with Apache Tuscany
S314011 - Developing Composite Applications for the Cloud with Apache TuscanyS314011 - Developing Composite Applications for the Cloud with Apache Tuscany
S314011 - Developing Composite Applications for the Cloud with Apache Tuscany
 
HTML5 Intro
HTML5 IntroHTML5 Intro
HTML5 Intro
 
Building an HTML5 Video Player
Building an HTML5 Video PlayerBuilding an HTML5 Video Player
Building an HTML5 Video Player
 
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
 
Web Apps
Web AppsWeb Apps
Web Apps
 

Similar to Html5 browser api_support

Edge of the Web
Edge of the WebEdge of the Web
Edge of the Web
Todd Anglin
 
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
Todd Anglin
 
HTML5 vs Silverlight
HTML5 vs SilverlightHTML5 vs Silverlight
HTML5 vs Silverlight
Matt Casto
 
HTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're goingHTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're going
brucelawson
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
Nathan Smith
 
Responsive Videos, mehr oder weniger
Responsive Videos, mehr oder wenigerResponsive Videos, mehr oder weniger
Responsive Videos, mehr oder weniger
Walter Ebert
 
[In Control 2010] HTML5
[In Control 2010] HTML5[In Control 2010] HTML5
[In Control 2010] HTML5
Christopher Schmitt
 
Html5 features: location, history and offline apps
Html5 features: location, history and offline appsHtml5 features: location, history and offline apps
Html5 features: location, history and offline apps
Konstantin Delchev
 
HTML5 Driven Development
HTML5 Driven DevelopmentHTML5 Driven Development
HTML5 Driven Development
Marcin Dembowski
 
HTML5 Presentation
HTML5 PresentationHTML5 Presentation
HTML5 Presentation
vs4vijay
 
Web DU Mobile Meow
Web DU Mobile MeowWeb DU Mobile Meow
Web DU Mobile Meow
Greg Schechter
 
Html5 Basics
Html5 BasicsHtml5 Basics
Html5 Basics
Pankaj Bajaj
 
Html5
Html5Html5
Mobile Meow at Mobilism
Mobile Meow at MobilismMobile Meow at Mobilism
Mobile Meow at Mobilism
Greg Schechter
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Sadaaki HIRAI
 
Html 5
Html 5Html 5
Html 5
Nguyen Quang
 
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
Christian Heilmann
 
HTML5 Video for WordPress
HTML5 Video for WordPressHTML5 Video for WordPress
HTML5 Video for WordPress
steveheffernan
 
html5 & phonegap
html5 & phonegaphtml5 & phonegap
html5 & phonegap
Caesar Chi
 
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
Patrick Lauke
 

Similar to Html5 browser api_support (20)

Edge of the Web
Edge of the WebEdge of the Web
Edge of the Web
 
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
 
HTML5 vs Silverlight
HTML5 vs SilverlightHTML5 vs Silverlight
HTML5 vs Silverlight
 
HTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're goingHTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're going
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
 
Responsive Videos, mehr oder weniger
Responsive Videos, mehr oder wenigerResponsive Videos, mehr oder weniger
Responsive Videos, mehr oder weniger
 
[In Control 2010] HTML5
[In Control 2010] HTML5[In Control 2010] HTML5
[In Control 2010] HTML5
 
Html5 features: location, history and offline apps
Html5 features: location, history and offline appsHtml5 features: location, history and offline apps
Html5 features: location, history and offline apps
 
HTML5 Driven Development
HTML5 Driven DevelopmentHTML5 Driven Development
HTML5 Driven Development
 
HTML5 Presentation
HTML5 PresentationHTML5 Presentation
HTML5 Presentation
 
Web DU Mobile Meow
Web DU Mobile MeowWeb DU Mobile Meow
Web DU Mobile Meow
 
Html5 Basics
Html5 BasicsHtml5 Basics
Html5 Basics
 
Html5
Html5Html5
Html5
 
Mobile Meow at Mobilism
Mobile Meow at MobilismMobile Meow at Mobilism
Mobile Meow at Mobilism
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
 
Html 5
Html 5Html 5
Html 5
 
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
 
HTML5 Video for WordPress
HTML5 Video for WordPressHTML5 Video for WordPress
HTML5 Video for WordPress
 
html5 & phonegap
html5 & phonegaphtml5 & phonegap
html5 & phonegap
 
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
 

Recently uploaded

Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
Dinusha Kumarasiri
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 

Recently uploaded (20)

Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 

Html5 browser api_support

  • 1. SIGONG media 스마트연구소 안 상 길 대 리 2012 . 07 . 18
  • 2. HTML5 API , HOW IS SUPPORTED BROWSER? AND Mobile
  • 3. 목차 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 4. TypeName Browser Type
  • 6. 목차 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 7. Input type Extends function HTML5 has several new input types for forms. These new features allow better input control and validation. Example Input Type : COLOR <input type=“color” name=“favcolor” /> TypeName Supproted Color X X O X O Date X X O O O Datetime X X O O O
  • 8. TypeName Supproted Datetime-local X X O O O Email X O O X O Month X X O O O Number X X O O O reange X X O O O Search X X O O X Tel X X X X X Time X X O O O url X O O X O Week X X O O O
  • 9. 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 10. 2. Video / DOM
  • 11. Video Tag HTML5 defines a new element which specifies a standard way to embed a video/movie on a web page: the <video> element. Example <video width="320" height="240" controls="controls"> <source src="movie.mp4" type="video/mp4" /> <source src="movie.ogg" type="video/ogg" /> Your browser does not support the video tag. </video> Video Formats And Browser Support Browser MP4 WebM Ogg Internet Explorer 9 Yse No No Firefox 4.0 No Yse Yse Google Chrome 6 Yse Yse Yse Apple Safari 5 Yse No No Opera 10.6 No Yse Yse
  • 12. Video Tag HTML5 defines a new element which specifies a standard way to embed a video/movie on a web page: the <video> element. Example <video width="320" height="240" controls="controls"> <source src="movie.mp4" type="video/mp4" /> <source src="movie.ogg" type="video/ogg" /> Your browser does not support the video tag. </video> Video Formats And Browser Support Browser MP4 WebM Ogg Internet Explorer 9 Yse No No Firefox 4.0 No Yse Yse Google Chrome 6 Yse Yse Yse Apple Safari 5 Yse No No Opera 10.6 No Yse Yse
  • 13. Video Tag Test link page : http://html5demos.com/video :Web Browser :Mobile Browser
  • 14. 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 16. Audio Tag defines a new element which specifies a standard way to embed an audio file on a web page: the <audio> element. Example <audio controls="controls"> <source src="song.ogg" type="audio/ogg" /> <source src="song.mp3" type="audio/mpeg" /> Your browser does not support the audio element. </audio> Audio Formats And Browser Support Browser MP4 WebM Ogg Internet Explorer 9 Yse No No Firefox 4.0 No Yse Yse Google Chrome 6 Yse Yse Yse Apple Safari 5 Yse No No Opera 10.6 No Yse Yse
  • 17. Audio Tag Link Page : http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_audio_all :Web Browser :Mobile Browser
  • 18. 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 19. 4. Drag and Drop
  • 20. Drag and Drop 개체를 다른 위치로 이동시키는 일반적인 기능, 표준으로 재정 되고 있으나 어떠한 속성은 draggable 될 가능성이 있음. Browser Support Browser Yes/No Internet Explorer 9 Yse Firefox 4.0 Yse Google Chrome 6 Yse Apple Safari 5 Yse Opera 10.6 Yse Note : Internet Explorer 8 및 이전 버전에서는 지원 하지 않음 Make an Element Draggable First of all: To make an element draggable, set the draggable attribute to true: <img draggable="true" />
  • 21. Drag and Drop Example Code <!DOCTYPE HTML> <html> <head> <style type="text/css"> #div1 {width:350px;height:70px;padding:10px;border:1px solid #aaaaaa;} </style> <script type="text/javascript"> function allowDrop(ev) { ev.preventDefault(); } function drag(ev) { ev.dataTransfer.setData("text",ev.target.id); } function drop(ev) { ev.preventDefault(); var data=ev.dataTransfer.getData("Text"); ev.target.appendChild(document.getElementById(data)); } </script> </head> <body> <p>Drag the W3Schools image into the rectangle:</p> <div id="div1" ondrop="drop(event)" ondragover="allowDrop(event)"></div> <br /> <img id="drag1" src="img_logo.gif" draggable="true" ondragstart="drag(event)" width="336" height="69" /> </body> </html> Link Page : http://html5demos.com/drag
  • 22. Drag and Drop :Web Browser :Mobile Browser
  • 23. 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 25. Canvas HTML5 Canvas Element is web page use to draw graphics 하나의 캔버스는 사각형구역이며, 그픽셀 하나하나를 제어 할 수 있습니다. Browser Support Browser Yes/No Internet Explorer 9 Yse Firefox 4.0 Yse Google Chrome 6 Yse Apple Safari 5 Yse Opera 10.6 Yse Note : Internet Explorer 8 및 이전 버전에서는 지원 하지 않음
  • 26. Canvas Example Code Create a Canvas Canvas Element 를 이용한 그리기 width, height 를 이용함 <canvas id="myCanvas" width="200" height="100"></canvas> Draw With JavaScript JavaScript를 이용한 그리기 <script type="text/javascript"> var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.fillStyle="#FF0000"; ctx.fillRect(0,0,150,75); </script> Link Page : http://paperjs.org/examples/hit-testing/ http://slides.html5rocks.com/#canvas-2d-example
  • 27. Canvas :Web Browser :Mobile Browser
  • 28. 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 30. GeoLocation HTML5 Geolocation API is used to get the georaphical position of a user. (단,개인정보이기 때문에 사용자가 승인한 경우만 사용할 수 있습니다.) Browser Support Browser Yes/No Internet Explorer 9 Yse Firefox 4.0 Yse Google Chrome 6 Yse Apple Safari 5 Yse Opera 10.6 Yse Note : Internet Explorer 8 및 이전 버전에서는 지원 하지 않음 Link Page : http://html5demos.com/geo http://slides.html5rocks.com/#geolocation
  • 31. GeoLocation :Web Browser :Mobile Browser
  • 32. 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 34. Web Storage With HTML5, web pages can store data locally within the user's browser. Browser Support Browser Yes/No Internet Explorer 8 Yse Firefox 4.0 Yse Google Chrome 6 Yse Apple Safari 5 Yse Opera 10.6 Yse Note : Internet Explorer 7 및 이전 버전에서는 지원 하지 않음 Link Page : http://www.
  • 35. Web Storage Example Code Storage,check browser support for localStorage&sessionStorage LocalStorage/SessionStorage 확인 if(typeof(Storage)!=="undefined“) { // Yes! localStorage and sessionStorage support! // Some code..... } else { // Sorry! No web storage support.. } <!DOCTYPE html> <html> <body> <div id="result"></div> <script> if(typeof(Storage)!=="undefined“) { localStorage.lastname="Smith"; document.getElementById("result").innerHTML="Last name: " + localStorage.lastname; } else { document.getElementById("result").innerHTML="Sorry, your browser does not support web storage..."; } </script> </body> </html> Link Page : http://slides.html5rocks.com/#web-storage
  • 36. Web Storage :Web Browser :Mobile Browser
  • 37. 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 39. App Cache HTML5에서는 Cache를 개발자에 의해 임의적인 Control 이 가능 Browser Support Browser Yes/No Internet Explorer No Firefox 4.0 Yse Google Chrome 6 Yse Apple Safari 5 Yse Opera 10.6 Yse Note : Internet Explorer 지원 하지 않음 Link Page : http://slides.html5rocks.com/#app-cache
  • 40. App Cache :Web Browser :Mobile Browser
  • 41. 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 43. Web Worker JavaScript 구동 시에 JS 파일을 background 에서 독립적으로 Once Thread 에 서 Multi Thread 로 구동 할 수 있다. Browser Support Browser Yes/No Internet Explorer No Firefox 4.0 Yse Google Chrome 6 Yse Apple Safari 5 Yse Opera 10.6 Yse Note : Internet Explorer 지원 하지 않음 실행 할 때는 JS파일로 만들어서 사용해야 함 Link Page : http://www.
  • 44. Web Worker :Web Browser :Mobile Browser
  • 45. 1. FROMS 2. Video / DOM 3. Audio 4. Drag and Drop 5. Canvas 6. Geolocation 7. Web Storage 8. App Cache 9. Web Workers 10.SSE(Server Sent Event)
  • 47. Server Sent Event 사용자의 웹페이를 자동 업데이트 하기 위한 기능 Browser Support Browser Yes/No Internet Explorer No Firefox 4.0 Yse Google Chrome 6 Yse Apple Safari 5 Yse Opera 10.6 Yse Note : Internet Explorer 지원 하지 않음 Link Page : http://www.
  • 48. Server Sent Event :Web Browser :Mobile Browser
  • 50. 부록. Canvas VS SVG Canvas SVG 해상도 의존적 해상도에 독립적 Event Handler 지원안함 Event Handler 지원 좋지않은 덱스트 렌더링 거대한 렌더링이 필요한 어플리케이션에 적합(google Map) 결과를 png나 jpg로 저장가능 복작해질경우 랜더링이 느림 많은 객체가 주주 다시 그려져야 함으로 게임어플리 케이션으로 부적함 그래픽 집약적인것에 적함 Link Page : http://www.