SlideShare a Scribd company logo
An introduction to HTML 5

        @ jamespearce
Single device            Multi device
Sedentary user            Mobile user
                                 *


Declarative               Imperative
Thin client               Thick client
Documents                Applications

         * or supine, or sedentary, or passive, or...
A badge for all these ways
   the web is changing
MS


     RIM
                     Google



        Apple




 Top US Smartphone Platforms
August 2011, comScore MobiLens
C#


       J2ME/Air
                          Java/C++



            Obj-C




Native programming languages you’ll need
      US Smartphones, August 2011
IE


  WebKit
                    WebKit



      WebKit




 Browser platforms to target
US Smartphones, August 2011
There is no WebKit on Mobile
                        - @ppk
But at least we are using
     one language,
      one markup,
    one style system
One Stack
An Intro to Mobile HTML5
An Intro to Mobile HTML5
Camera       WebFont        Video      Audio     Graphics
                                                              HTTP
 Location
                         CSS Styling & Layout                 AJAX
 Contacts
                                                             Events
   SMS                          JavaScript
                                                             Sockets
Orientation
                             Semantic HTML                    SSL
   Gyro

              File Systems      Workers &
                                                Cross-App
               Databases         Parallel
                                                Messaging
              App Caches        Processing


     (all the elements of a modern application platform)
An Intro to Mobile HTML5
An Intro to Mobile HTML5
Are we nearly there yet?
IE   Chrome   Safari   Firefox   iOS   BBX   Android
            @font-face
                 Canvas
HTML5 Audio & Video
          rgba(), hsla()
        border-image:
        border-radius:
          box-shadow:
         text-shadow:
                opacity:
Multiple backgrounds
   Flexible Box Model
      CSS Animations
         CSS Columns
        CSS Gradients
      CSS Reflections
   CSS 2D Transforms
   CSS 3D Transforms
       CSS Transitions
      Geolocation API
 local/sessionStorage
    SVG/SVG Clipping
                   SMIL
             Inline SVG
        Drag and Drop
           hashchange
X-window Messaging
 History Management
     applicationCache
         Web Sockets
         Web Workers
   Web SQL Database
                 WebGL
            IndexedDB
Stay on top of diversity
Can I Use?
http://caniuse.com

Modernizr
http://modernizr.com

DeviceAtlas
http://deviceatlas.com
100%
Support




          Browsers




                     Capabilities & specifications
100%
Support




          Browsers         Polyfills Frameworks




                     Capabilities & specifications
An Intro to Mobile HTML5
The classic web architecture


                  request
User interface              Rendering
                 response
Business logic

   Storage



    server                    client
A new web architecture


                 User interface
          sync
 API             Business logic

Storage             Storage



server               client
But there is a
a place for both
An Intro to Mobile HTML5
An Intro to Mobile HTML5
Recent developments
iOS 5
Input types
contenteditable
position:fixed
classList
XHR2
Script defer & async
Inline SVG
Web Workers
overflow: scroll;
-webkit-overflow-scrolling: touch;
http://jamesgpearce.github.com/compios5/
window.addEventListener('deviceorientation', function(e) {

    var heading = e.webkitCompassHeading + window.orientation;

    spinner.style.webkitTransform = 'rotateZ(-' + heading + 'deg)';

}, false);
Android 4
SVG at all
CSS3 3D transforms
classList
XHR2
Script defer & async
<details> & <summary>
File reader
Device orientation
Navigation timing
window.performance
<input type="file" id="picker"
    accept="image/*"
    capture="camera"
>

// camcorder
// microphone
// filesystem

var image = picker.files[0];
We haven’t even started
What does the web look
 like when you have...
Camera
Microphone
 Contacts
 Calendar
Messaging
Telephony
   NFC
     ?
Media Capture (HTML)      Media Capture (API)
Battery status            Application Registration
Contacts                  Calendar
Messaging (SMS, MMS...)   Feature Permissions
Network Information API   Sensor API
                          Vibration API
                          Menu API
Audio Volume
                          Permissions for APIs
Beep
Gallery
Systems info and events
Tasks
Accelerometer       APDU (SmartCard)
Orientation         Bluetooth
Camera              Crypto
DeviceStatus        DLNA
Filesystem          Server Push
Messaging           Sensor
Geolocation         Telephony
PIM 
Contacts
Calendar
Tasks
DeviceInteraction
Telephony
Messaging
Contacts
Clock
Camera
Filesystem
Calculator
Device Status
Settings
Accelerometer
Mouse Lock
Maps
Mobile device APIs
- the web’s great leap forward
The mobile web
becomes more than a
    320px web
window.addEventListener(
   'appointmentdue',
   function(appt) {
      if (device.near(WORK)) {
        siri.remind(
          contacts.get('Peter'),
          calendar.getDetails(appt)
        );
      }
   },
   false
);
              (PS: This code does not work. Yet.)
built with

Apps vs web technology
James Pearce
@ jamespearce

More Related Content

PDF
An Introduction to Sencha Touch
PPTX
Genexus Mobile
PDF
Blending Performance with Front-End Architecture
PPTX
Developing with Windows Live
PPT
Salesforce touch
PPSX
Developing Downloadable Mobile Apps Using HTML5 and PhoneGap
PPSX
Silverlight development
PPTX
Silverlight development
An Introduction to Sencha Touch
Genexus Mobile
Blending Performance with Front-End Architecture
Developing with Windows Live
Salesforce touch
Developing Downloadable Mobile Apps Using HTML5 and PhoneGap
Silverlight development
Silverlight development

What's hot (20)

ODP
Evaluation and prototyping of an HTML5 Client for iOS devices
KEY
LinkedIn Mobile: How do we do it?
PPTX
Application Development Approaches
PDF
Architecting Multitenant SaaS Applications with Azure - Microsoft Ignite The ...
PDF
Evaluation and prototyping of an HTML5 Client for iOS devices
PPTX
baidu开发者大会 - Web App开发框架介绍以及分析
PPTX
BLN Making it Mobile - financial services example
PDF
Migrating Legacy On-Premise Applications to SharePoint Online and Windows Azure
PDF
Ember.js 101 - JSChannel NCR
PPTX
Magic xpa total mobility experience
PPTX
Magic xpa total mobility experience
PDF
Dsl tdc-2013
PDF
Decoupled cms sunshinephp 2014
PPT
Introduction to ASP.NET
PPTX
Case study: integrating azure with google app engine
PDF
Introduction to Front End Engineering
PDF
Webinar - Migrating Legacy On Premise Solutions to SharePoint Online and Wind...
PDF
LeaseWeb API Architecture @ APINL Meetup
PDF
차세대 모바일 App 기술동향 컨퍼런스 - HTML5와 웹앱 동향
PPTX
Azure Services Platform
Evaluation and prototyping of an HTML5 Client for iOS devices
LinkedIn Mobile: How do we do it?
Application Development Approaches
Architecting Multitenant SaaS Applications with Azure - Microsoft Ignite The ...
Evaluation and prototyping of an HTML5 Client for iOS devices
baidu开发者大会 - Web App开发框架介绍以及分析
BLN Making it Mobile - financial services example
Migrating Legacy On-Premise Applications to SharePoint Online and Windows Azure
Ember.js 101 - JSChannel NCR
Magic xpa total mobility experience
Magic xpa total mobility experience
Dsl tdc-2013
Decoupled cms sunshinephp 2014
Introduction to ASP.NET
Case study: integrating azure with google app engine
Introduction to Front End Engineering
Webinar - Migrating Legacy On Premise Solutions to SharePoint Online and Wind...
LeaseWeb API Architecture @ APINL Meetup
차세대 모바일 App 기술동향 컨퍼런스 - HTML5와 웹앱 동향
Azure Services Platform
Ad

Viewers also liked (20)

PDF
Creating and Distributing Mobile Web Applications with PhoneGap
PPTX
Introduction à HTML 5
PPT
Html 5 introduction
PDF
Nnnnooemi pool riooss 1c
PDF
Intro to html 5
PPTX
Introduction to html 5
PDF
Introduction to html 5
PDF
Joomla 1.7 Guia del Principiante
PPTX
Opmax Presentatie Social Media En Seo
PDF
Prefeitura do município de mirante da serra – ro
PDF
8020 guarding flipbook
PDF
Diário Oficial de Guarujá - 11-05-12
PDF
Deimos building control suite esp
PDF
Descargar driver de lexmark x1250
PDF
Rendicion de cuentas cultura
PDF
WFIA, Prayer For 23 December 2010
PDF
Netvalue Web Marketing Solutions
PDF
Dossier presentacion.sevillanas.indignadas
PDF
Open atrium 2.0 at BADcamp
PDF
Actividades marzo museo alhambra 2013
Creating and Distributing Mobile Web Applications with PhoneGap
Introduction à HTML 5
Html 5 introduction
Nnnnooemi pool riooss 1c
Intro to html 5
Introduction to html 5
Introduction to html 5
Joomla 1.7 Guia del Principiante
Opmax Presentatie Social Media En Seo
Prefeitura do município de mirante da serra – ro
8020 guarding flipbook
Diário Oficial de Guarujá - 11-05-12
Deimos building control suite esp
Descargar driver de lexmark x1250
Rendicion de cuentas cultura
WFIA, Prayer For 23 December 2010
Netvalue Web Marketing Solutions
Dossier presentacion.sevillanas.indignadas
Open atrium 2.0 at BADcamp
Actividades marzo museo alhambra 2013
Ad

Similar to An Intro to Mobile HTML5 (20)

PDF
A Snapshot of the Mobile HTML5 Revolution
PDF
Building Cross Platform Mobile Web Apps
PDF
Building cross platform mobile web apps
PDF
Building Cloud-Based Cross-Platform Mobile Web Apps
PDF
HTML5 and the dawn of rich mobile web applications
PDF
HTML5 and the dawn of rich mobile web applications pt 1
PDF
Cross platform mobile web apps
KEY
Building Rich Mobile Apps with HTML5, CSS3 and JavaScript
PDF
Bd conf sencha touch workshop
PDF
air
PPSX
Cross platform mobile application architecture for enterprise
PPTX
Win8 ru
PDF
Next Generation Web Attacks – HTML 5, DOM(L3) and XHR(L2)
PDF
HTML5 Technical Executive Summary
PDF
Sencha Touch for Rubyists
PPTX
HTML5 for Rich User Experience
PDF
The Modern Web, Part 1: Mobility
PDF
Developing the Next Generation Embedded HMIs
PPTX
Introduction to Microsoft Silverlight
PDF
Polysource-IT Profile
A Snapshot of the Mobile HTML5 Revolution
Building Cross Platform Mobile Web Apps
Building cross platform mobile web apps
Building Cloud-Based Cross-Platform Mobile Web Apps
HTML5 and the dawn of rich mobile web applications
HTML5 and the dawn of rich mobile web applications pt 1
Cross platform mobile web apps
Building Rich Mobile Apps with HTML5, CSS3 and JavaScript
Bd conf sencha touch workshop
air
Cross platform mobile application architecture for enterprise
Win8 ru
Next Generation Web Attacks – HTML 5, DOM(L3) and XHR(L2)
HTML5 Technical Executive Summary
Sencha Touch for Rubyists
HTML5 for Rich User Experience
The Modern Web, Part 1: Mobility
Developing the Next Generation Embedded HMIs
Introduction to Microsoft Silverlight
Polysource-IT Profile

More from James Pearce (12)

PDF
Mobile Device APIs
PDF
The City Bars App with Sencha Touch 2
PDF
A mobile web app for Android in 75 minutes
PDF
HTML5 and the dawn of rich mobile web applications pt 2
PDF
Building a Mobile App with Sencha Touch
PDF
Create a mobile web app with Sencha Touch
PDF
City bars workshop
PDF
San Diego Hackathon
PDF
Theming and Sass
PDF
Source Dev Con Keynote
PDF
Building tomorrow's web with today's tools
PDF
Serving Mobile Apps from Content Management Systems
Mobile Device APIs
The City Bars App with Sencha Touch 2
A mobile web app for Android in 75 minutes
HTML5 and the dawn of rich mobile web applications pt 2
Building a Mobile App with Sencha Touch
Create a mobile web app with Sencha Touch
City bars workshop
San Diego Hackathon
Theming and Sass
Source Dev Con Keynote
Building tomorrow's web with today's tools
Serving Mobile Apps from Content Management Systems

Recently uploaded (20)

DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
A Presentation on Artificial Intelligence
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Machine Learning_overview_presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
Diabetes mellitus diagnosis method based random forest with bat algorithm
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Programs and apps: productivity, graphics, security and other tools
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Machine learning based COVID-19 study performance prediction
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Approach and Philosophy of On baking technology
A Presentation on Artificial Intelligence
Network Security Unit 5.pdf for BCA BBA.
NewMind AI Weekly Chronicles - August'25-Week II
Advanced methodologies resolving dimensionality complications for autism neur...
“AI and Expert System Decision Support & Business Intelligence Systems”
Unlocking AI with Model Context Protocol (MCP)
Machine Learning_overview_presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Mobile App Security Testing_ A Comprehensive Guide.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

An Intro to Mobile HTML5