SlideShare una empresa de Scribd logo
1 de 27
Descargar para leer sin conexión
HTML5 in online business: Web vs App
                          Alberto Varela Iñaki Gorostiza
                        alberto@LIN3S.com   igorostiza@LIN3S.com
Web vs App

•    Cross-platform
•    Visibility
•    Accesibility
•    Interface
•    Scalability
HTML5

•    Structural Tags
•    Native video audio
•    Geolocalization
•    Form
•    Off-line Apps (manifest)
•    Cross browser
•    Backward compatibility(Modernizr)
•  Multi-device (responsive)
•  Web storage
CSS3

•    Opacity
•    Border
•    Shadows
•    Web fonts
•    Transitions
•    Less - Sass
Responsive Design

•    Mediaqueries
•    Adaptive images
•    CSS3 Grid
•    Mobile version
•    Interfaz Web
Semantic Web

•  HTML5 Semantic tags
•  Schema.org
•  Microdatas
Web performance

•    Load time efficiency
•    Resources
•    Page views
•    Conversions
•    SEO
Web vs App: Analytics

•    Paradigm Shift
•    Tracking
•    Metrics
•    Conversion
HTML5 Works?

        •    Structural Tags
        •    Native video audio
        •    Geolocalization
        •    Off-line Apps
        •    Cross browser
        •    Multi-device
        •    Local storage
DETECTION TECHNIQUES

Technique #1
function supports_geolocation() {
    return 'geolocation' in navigator;
}



Technique #2
function supports_canvas() {
  return !!document.createElement('canvas').getContext;
}

function supports_input_placeholder() {
  var i = document.createElement('input');
  return 'placeholder' in i;
}
DETECTION TECHNIQUES

Technique #3
function supports_video() {
  return !!document.createElement('video').canPlayType;
}
function supports_h264_baseline_video() {
  if (!supports_video()) { return false; }
  var v = document.createElement("video");
  return v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');
}


Technique #4
function supports_colorpicker() {
    var i = document.createElement("input");
    i.setAttribute("type", "color");
    return i.type !== "text";
}
DETECTION TECHNIQUES (Modernizr)
                        Techinque #1
                        if (Modernizr.geolocation) {
                          // let's find out where you are!

http://modernizr.com/   } else {
                          // no native geolocation support available :(
                          // maybe try Gears or another third-party solution
                        }
                        Techinque #2
                        if (Modernizr.canvas) {
                          // let's draw some shapes!
                        } else {
                          // no native canvas support available :(
                        }
                        Techinque #3
                        if (Modernizr.video) {
                          // let's play some video! but what kind?
                          if (Modernizr.video.webm) {
                            // try WebM
                          } else if (Modernizr.video.ogg) {
                            // try Ogg Theora + Vorbis in an Ogg container
                          } else if (Modernizr.video.h264){
                            // try H.264 video + AAC audio in an MP4 container
                          }
                        }
                        Techinque #4
                        if (!Modernizr.inputtypes.color) {
                          // no native support for <input type="date"> :(
                          // maybe build one yourself with Dojo or jQueryUI
                        }
If browser does not support?

- Fallback JS
- Flash
- Do nothing


What about IE?
 - IE >= v9 → OK
 - IE < v9 → KO
     · HTML5Shiv
New elements/attributes
- placeholder
- autofocus        Validation
- email            - required
- url              - pattern
- number           - min
- range            - max
- datepicker       - <form novalidate>
- date
– datetime
– datetime-local
– month
– week
– time
- search
- color
HTML5 APIs




Geolocation, Web Sockets, Web Workers, Web Storage, File
 API, Device Orientation Events, Touch events, Full Screen
                 API, Web notifications,...
Video & Audio
Frameworks & Stuff
http://diveintohtml5.info/
http://caniuse.com/
http://www.whatwg.org/
http://html5doctor.com/
http://html5demos.com/
http://www.html5rocks.com/
http://html5test.com/
http://dev.w3.org/html5/spec/single-page.html
Thanks!
Iñaki Gorostiza
igorostiza@LIN3S.com

Más contenido relacionado

La actualidad más candente

Web technologies for desktop development
Web technologies for desktop developmentWeb technologies for desktop development
Web technologies for desktop development
Darko Kukovec
 

La actualidad más candente (20)

Docker 0.11 at MaxCDN meetup in Los Angeles
Docker 0.11 at MaxCDN meetup in Los AngelesDocker 0.11 at MaxCDN meetup in Los Angeles
Docker 0.11 at MaxCDN meetup in Los Angeles
 
Building images efficiently and securely on Kubernetes with BuildKit
Building images efficiently and securely on Kubernetes with BuildKitBuilding images efficiently and securely on Kubernetes with BuildKit
Building images efficiently and securely on Kubernetes with BuildKit
 
Upstate DevOps - Containers 101 - March 28, 2019
Upstate DevOps - Containers 101 - March 28, 2019Upstate DevOps - Containers 101 - March 28, 2019
Upstate DevOps - Containers 101 - March 28, 2019
 
Linux containers
Linux containersLinux containers
Linux containers
 
Web technologies for desktop development
Web technologies for desktop developmentWeb technologies for desktop development
Web technologies for desktop development
 
How to build LibreOffice on your desktop
How to build LibreOffice on your desktopHow to build LibreOffice on your desktop
How to build LibreOffice on your desktop
 
Docker, Docker Swarm mangement tool - Gorae
Docker, Docker Swarm mangement tool - GoraeDocker, Docker Swarm mangement tool - Gorae
Docker, Docker Swarm mangement tool - Gorae
 
[HKOSCon x COSCUP 2020][20200801][Ansible: From VM to Kubernetes]
[HKOSCon x COSCUP 2020][20200801][Ansible: From VM to Kubernetes][HKOSCon x COSCUP 2020][20200801][Ansible: From VM to Kubernetes]
[HKOSCon x COSCUP 2020][20200801][Ansible: From VM to Kubernetes]
 
Vagrant - Version control your dev environment
Vagrant - Version control your dev environmentVagrant - Version control your dev environment
Vagrant - Version control your dev environment
 
[KubeConUS2019 Docker, Inc. Booth] Distributed Builds on Kubernetes with Bui...
 [KubeConUS2019 Docker, Inc. Booth] Distributed Builds on Kubernetes with Bui... [KubeConUS2019 Docker, Inc. Booth] Distributed Builds on Kubernetes with Bui...
[KubeConUS2019 Docker, Inc. Booth] Distributed Builds on Kubernetes with Bui...
 
Node
NodeNode
Node
 
[Paris Container Day 2021] nerdctl: yet another Docker & Docker Compose imple...
[Paris Container Day 2021] nerdctl: yet another Docker & Docker Compose imple...[Paris Container Day 2021] nerdctl: yet another Docker & Docker Compose imple...
[Paris Container Day 2021] nerdctl: yet another Docker & Docker Compose imple...
 
Build your own RasPiTV with Node.js & Socket.io
Build your own RasPiTV with Node.js & Socket.ioBuild your own RasPiTV with Node.js & Socket.io
Build your own RasPiTV with Node.js & Socket.io
 
Rootless Containers & Unresolved issues
Rootless Containers & Unresolved issuesRootless Containers & Unresolved issues
Rootless Containers & Unresolved issues
 
[KubeCon EU 2020] containerd Deep Dive
[KubeCon EU 2020] containerd Deep Dive[KubeCon EU 2020] containerd Deep Dive
[KubeCon EU 2020] containerd Deep Dive
 
iBizLog - ESUG2010
iBizLog - ESUG2010iBizLog - ESUG2010
iBizLog - ESUG2010
 
About docker in GDG Seoul
About docker in GDG SeoulAbout docker in GDG Seoul
About docker in GDG Seoul
 
[KubeCon NA 2020] containerd: Rootless Containers 2020
[KubeCon NA 2020] containerd: Rootless Containers 2020[KubeCon NA 2020] containerd: Rootless Containers 2020
[KubeCon NA 2020] containerd: Rootless Containers 2020
 
ISC HPCW talks
ISC HPCW talksISC HPCW talks
ISC HPCW talks
 
node.js - Eventful JavaScript on the Server
node.js - Eventful JavaScript on the Servernode.js - Eventful JavaScript on the Server
node.js - Eventful JavaScript on the Server
 

Similar a HTML5 in online business: Web vs App

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
 
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
smueller_sandsmedia
 
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
 

Similar a HTML5 in online business: Web vs App (20)

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
 
HTML5 Driven Development
HTML5 Driven DevelopmentHTML5 Driven Development
HTML5 Driven Development
 
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
 
Docker 2014
Docker 2014Docker 2014
Docker 2014
 
HTML 5 - Overview
HTML 5 - OverviewHTML 5 - Overview
HTML 5 - Overview
 
Html5 Open Video Tutorial
Html5 Open Video TutorialHtml5 Open Video Tutorial
Html5 Open Video Tutorial
 
Txjs
TxjsTxjs
Txjs
 
HTML5: An Overview
HTML5: An OverviewHTML5: An Overview
HTML5: An Overview
 
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....
 
Tribal Nova Docker workshop
Tribal Nova Docker workshopTribal Nova Docker workshop
Tribal Nova Docker workshop
 
How dojo works
How dojo worksHow dojo works
How dojo works
 
HTML 5
HTML 5HTML 5
HTML 5
 
DevOps meetup 16oct docker and jenkins
DevOps meetup 16oct docker and jenkinsDevOps meetup 16oct docker and jenkins
DevOps meetup 16oct docker and jenkins
 
Html5 intro
Html5 introHtml5 intro
Html5 intro
 
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
 
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
 
Node azure
Node azureNode azure
Node azure
 
Palm Developer Day PhoneGap
Palm Developer Day PhoneGap Palm Developer Day PhoneGap
Palm Developer Day PhoneGap
 
Mobile Web Development with HTML5
Mobile Web Development with HTML5Mobile Web Development with HTML5
Mobile Web Development with HTML5
 

Último

Último (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
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
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

HTML5 in online business: Web vs App

  • 1. HTML5 in online business: Web vs App Alberto Varela Iñaki Gorostiza alberto@LIN3S.com igorostiza@LIN3S.com
  • 2. Web vs App •  Cross-platform •  Visibility •  Accesibility •  Interface •  Scalability
  • 3.
  • 4.
  • 5.
  • 6. HTML5 •  Structural Tags •  Native video audio •  Geolocalization •  Form •  Off-line Apps (manifest) •  Cross browser •  Backward compatibility(Modernizr) •  Multi-device (responsive) •  Web storage
  • 7. CSS3 •  Opacity •  Border •  Shadows •  Web fonts •  Transitions •  Less - Sass
  • 8. Responsive Design •  Mediaqueries •  Adaptive images •  CSS3 Grid •  Mobile version •  Interfaz Web
  • 9. Semantic Web •  HTML5 Semantic tags •  Schema.org •  Microdatas
  • 10. Web performance •  Load time efficiency •  Resources •  Page views •  Conversions •  SEO
  • 11. Web vs App: Analytics •  Paradigm Shift •  Tracking •  Metrics •  Conversion
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17. HTML5 Works? •  Structural Tags •  Native video audio •  Geolocalization •  Off-line Apps •  Cross browser •  Multi-device •  Local storage
  • 18. DETECTION TECHNIQUES Technique #1 function supports_geolocation() { return 'geolocation' in navigator; } Technique #2 function supports_canvas() { return !!document.createElement('canvas').getContext; } function supports_input_placeholder() { var i = document.createElement('input'); return 'placeholder' in i; }
  • 19. DETECTION TECHNIQUES Technique #3 function supports_video() { return !!document.createElement('video').canPlayType; } function supports_h264_baseline_video() { if (!supports_video()) { return false; } var v = document.createElement("video"); return v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'); } Technique #4 function supports_colorpicker() { var i = document.createElement("input"); i.setAttribute("type", "color"); return i.type !== "text"; }
  • 20. DETECTION TECHNIQUES (Modernizr) Techinque #1 if (Modernizr.geolocation) { // let's find out where you are! http://modernizr.com/ } else { // no native geolocation support available :( // maybe try Gears or another third-party solution } Techinque #2 if (Modernizr.canvas) { // let's draw some shapes! } else { // no native canvas support available :( } Techinque #3 if (Modernizr.video) { // let's play some video! but what kind? if (Modernizr.video.webm) { // try WebM } else if (Modernizr.video.ogg) { // try Ogg Theora + Vorbis in an Ogg container } else if (Modernizr.video.h264){ // try H.264 video + AAC audio in an MP4 container } } Techinque #4 if (!Modernizr.inputtypes.color) { // no native support for <input type="date"> :( // maybe build one yourself with Dojo or jQueryUI }
  • 21. If browser does not support? - Fallback JS - Flash - Do nothing What about IE? - IE >= v9 → OK - IE < v9 → KO · HTML5Shiv
  • 22. New elements/attributes - placeholder - autofocus Validation - email - required - url - pattern - number - min - range - max - datepicker - <form novalidate> - date – datetime – datetime-local – month – week – time - search - color
  • 23. HTML5 APIs Geolocation, Web Sockets, Web Workers, Web Storage, File API, Device Orientation Events, Touch events, Full Screen API, Web notifications,...