SlideShare a Scribd company logo
1 of 29
Download to read offline
HTML5, State of art

           june, 2
Presented by Nelson Monteiro,
            5242


                                1
Agenda
• What is HTML5                             • State of mobile web
• HTML5 brief history                         development
• Where are we now?                            – HTML5 API usage
• Mobile webkit browsers                       – Mobile browser os
  support                                        choice
• New rules/ new tags                       • Native apps vs Web apps
   – semantic web                           • Advantages of mobile apps
                                              using html5
   – video
                                            • Examples
   – canvas
                                            • Useful links
   – local storage
                                            • Questions?
   – geolocation
   – offline applications
                1º Simpósio do Mestrado em Computação Móvel     2
                                                                          2
What is HTML5

•   the natural evolution of html?
•   the lost battle of xhtml2?
•   the union between whatwg an w3c?
•   the end of native apps?
•   HTML + CSS + javascript?




               1º Simpósio do Mestrado em Computação Móvel         3
                                                                         3
HTML5 brief history

• 1999: HTML 4.01 was released
• 2002: w3c start XHTML2
• 2004: Web Hypertext Application Technology Working
  Group (WHATWG) - Apple, Mozilla and Opera - started
  work on Web Applications 1.0
• 2007: W3C drops XHTML and forms HTMLWG
• 2008: first draft of HTML5 is published
• June 2011: HTML5 Working Draft has reached its Last
  Call milestone




              1º Simpósio do Mestrado em Computação Móvel   4
                                                                4
Where are we now?




• Current State:
  http://www.whatwg.org/specs/web-apps/current-work/multipage/

                 1º Simpósio do Mestrado em Computação Móvel     5
                                                                     5
Mobile webkit browsers support




http://radar.oreilly.com/2010/05/mobile-operating-systems-and-b.html


                               1º Simpósio do Mestrado em Computação Móvel   6
                                                                                 6
New rules/ new tags
Semantic Web

• Before HTML5                        • After HTML5




         1º Simpósio do Mestrado em Computação Móvel   7
                                                           7
New rules/ new tags
Video
<video width="640" height="360" controls>
  <source src="vid.mp4" type="video/mp4" /><!-- Safari / iOS video                                -->

  <source src="vid.ogv" type="video/ogg" /><!-- Firefox3.6+ / Opera                               10.5+
-->
      <source src="vid.webm" type="video/webm" /><!--                         Chrome10+, Ffx4+,
Opera10.6+ -->
</video>




http://diveintohtml5.org/video.html

                                1º Simpósio do Mestrado em Computação Móvel           8
                                                                                                          8
New rules/ new tags
Video




        1º Simpósio do Mestrado em Computação Móvel   9
                                                          9
New rules/ new tags
Video
Advantages:

• no plugins needed
• direct video watching
• interaction between video and web app




              1º Simpósio do Mestrado em Computação Móvel   10
                                                                 10
New rules/ new tags
Canvas
 <script type="text/javascript">
 if (Modernizr.canvas) {
    var c = document.createElement('canvas');
    var context = c.getContext('2d');
    //
    context.fillStyle = "rgb(200,0,0)";
    context.fillRect (10, 10, 55, 50);
    context.fillStyle = "rgba(0, 0, 200, 0.5)";
    context.fillRect (30, 30, 55, 50);
    //
    document.getElementById('chartContainer').appendChild(c);
 }
 </script>




http://diveintohtml5.org/canvas.html

                                1º Simpósio do Mestrado em Computação Móvel   11
                                                                                   11
New rules/ new tags
Canvas




         1º Simpósio do Mestrado em Computação Móvel   12
                                                            12
New rules/ new tags
Canvas
Advantages:
• no plugins needed
• creating interactive/ dynamic charts
• creating interactive/ dynamic maps




               1º Simpósio do Mestrado em Computação Móvel   13
                                                                  13
New rules/ new tags
Local Storage
function saveGameState() {

         if (!supportsLocalStorage()) { return false; }

         localStorage["halma.game.in.progress"] = gGameInProgress;

         for (var i = 0; i < kNumPieces; i++) {

         localStorage["halma.piece." + i + ".row"] = gPieces[i].row;

         localStorage["halma.piece." + i + ".column"] = gPieces[i].column;

     }




http://diveintohtml5.org/storage.html

                               1º Simpósio do Mestrado em Computação Móvel   14
                                                                                  14
New rules/ new tags
Local Storage




           1º Simpósio do Mestrado em Computação Móvel   15
                                                              15
New rules/ new tags
Local Storage
Advantages:

•   persists beyond a page refresh
•   on the client
•   isn’t transmitted to the server
•   5 Mb of storage




                1º Simpósio do Mestrado em Computação Móvel   16
                                                                   16
New rules/ new tags
Geolocation
function get_location() {

    navigator.geolocation.getCurrentPosition(show_map);

}

function show_map(position) {

    var latitude = position.coords.latitude;

    var longitude = position.coords.longitude;

    // let's show a map or do something interesting!

}




http://diveintohtml5.org/geolocation.html

                               1º Simpósio do Mestrado em Computação Móvel   17
                                                                                  17
New rules/ new tags
Geolocation




          1º Simpósio do Mestrado em Computação Móvel   18
                                                             18
New rules/ new tags
Geolocation
Advantages:
• no plugins needed
• show current location on map
• deliver content for your location only




               1º Simpósio do Mestrado em Computação Móvel   19
                                                                  19
New rules/ new tags
Offline Application
<!DOCTYPE HTML>
                                                                    CACHE	
  MANIFEST
<html manifest="/cache.manifest">
                                                                    /clock.css
<body>
                                                                    /clock.js
...
                                                                    /clock-­‐face.jpg
</body>

</html>




http://diveintohtml5.org/offline.html

                                 1º Simpósio do Mestrado em Computação Móvel            20
                                                                                             20
New rules/ new tags
Offline Application
Advantages:

• Working with the application offline
• New data downloaded when online again




              1º Simpósio do Mestrado em Computação Móvel   21
                                                                 21
State mobile web development
  • HTML5 API usage




http://www.webdirections.org/sotmw2011/technologies/
                               1º Simpósio do Mestrado em Computação Móvel   22
                                                                                  22
State mobile web development
  • HTML5 API usage




http://www.webdirections.org/sotmw2011/technologies/
                               1º Simpósio do Mestrado em Computação Móvel   23
                                                                                  23
State mobile web development
  • Mobile browser os choice




http://www.webdirections.org/sotmw2011/browsers-and-platforms/
                               1º Simpósio do Mestrado em Computação Móvel   24
                                                                                  24
Native apps vs. Web apps
  Native                                          Web
• access to app store                        • no app store
• access to device api                       • no access to device api
• native UI experience                       • challenge creating device UI
• good performance                           • smaller performance
• bigger learning curve                      • ease of learning
• no cross platform                          • ease of cross platform
  deployment                                   development
• long development time                      • ease of development
• upgrades need to be                        • instant upgrades
  submited to app store                      • no app store restrictions
• App store restrictions

                1º Simpósio do Mestrado em Computação Móvel       25
                                                                              25
Advantages of mobile apps using html5

•   Geolocation API
•   Offline Storage
•   Offline Cache
•   Multi-touch Event API
•   Vídeo
•   Canvas
•   Fancier styles and transitions
•   Great javascript engine




                 1º Simpósio do Mestrado em Computação Móvel   26
                                                                    26
Examples
• http://optimus.usatoday.com/
• http://foursquareplayground.com/
• http://everytimezone.com/




               1º Simpósio do Mestrado em Computação Móvel     27
                                                                    27
Useful links
•   http://www.slideshare.net/MrJ1971/html5-and-the-mobile-web
•   http://www.slideshare.net/glenn.kelman/html-5-vs-native-mobile-applications
•   http://www.slideshare.net/phish108/html5-for-mobiles
•   http://www.slideshare.net/brucelawson/web-anywhere-mobile-optimisation-
    with-html5-css3-javascript
•   http://www.slideshare.net/didoo/html5-for-mobile
•   http://www.slideshare.net/batmoo/html5-css3-and-other-fancy-buzzwords
•   http://www.slideshare.net/wolframkriesing/html5-apps-mobile-developer-
    summit-bangalore
•   http://www.slideshare.net/docdoku/html-5-ou-lvolution-majeure-du-web-et-
    de-linternet-mobile
•   http://www.slideshare.net/pp.koch/the-future-of-the-mobile-web
•   http://www.slideshare.net/marcelioleal/html5overviewpdf
•   http://www.slideshare.net/zibin/brief-history-of-html5-7977732
•   http://www.slideshare.net/elisabethrobson/html5-whats-it-all-about
•   http://www.slideshare.net/marcelioleal/html5overviewpdf
•   http://www.whatwg.org/specs/web-apps/current-work/multipage/
•   http://devfiles.myopera.com/articles/572/idlist-url.htm


                     1º Simpósio do Mestrado em Computação Móvel        28
                                                                                  28
Questions?




1º Simpósio do Mestrado em Computação Móvel       29
                                                       29

More Related Content

Viewers also liked

Weather17th 20th
Weather17th 20thWeather17th 20th
Weather17th 20th
amykay16
 
Weather 12th 16th
Weather 12th 16thWeather 12th 16th
Weather 12th 16th
amykay16
 
Menkes bp dr.ricca
Menkes bp dr.riccaMenkes bp dr.ricca
Menkes bp dr.ricca
Sufya Anwar
 

Viewers also liked (18)

Zendesk PRO Tips
Zendesk PRO TipsZendesk PRO Tips
Zendesk PRO Tips
 
Weather17th 20th
Weather17th 20thWeather17th 20th
Weather17th 20th
 
Steaua bucuresti
Steaua bucurestiSteaua bucuresti
Steaua bucuresti
 
Weather 12th 16th
Weather 12th 16thWeather 12th 16th
Weather 12th 16th
 
Building your Personal Brand
Building your Personal BrandBuilding your Personal Brand
Building your Personal Brand
 
Gami offshorent - executive overview
Gami   offshorent - executive overviewGami   offshorent - executive overview
Gami offshorent - executive overview
 
Responsabilidad
ResponsabilidadResponsabilidad
Responsabilidad
 
Stop motion
Stop motionStop motion
Stop motion
 
Aboutgoosumahobu20120401
Aboutgoosumahobu20120401Aboutgoosumahobu20120401
Aboutgoosumahobu20120401
 
Tomaron la UNTECS...
Tomaron la UNTECS...Tomaron la UNTECS...
Tomaron la UNTECS...
 
Offshorent executive overview
Offshorent executive overviewOffshorent executive overview
Offshorent executive overview
 
Pla de futur de Sant Antoni
Pla de futur de Sant AntoniPla de futur de Sant Antoni
Pla de futur de Sant Antoni
 
Responsabilidad
ResponsabilidadResponsabilidad
Responsabilidad
 
101202 firmenpräsi druckversion_e_low
101202 firmenpräsi druckversion_e_low101202 firmenpräsi druckversion_e_low
101202 firmenpräsi druckversion_e_low
 
Menkes bp dr.ricca
Menkes bp dr.riccaMenkes bp dr.ricca
Menkes bp dr.ricca
 
Gravação do Clip "Promessa"
Gravação do Clip "Promessa"Gravação do Clip "Promessa"
Gravação do Clip "Promessa"
 
Responsabilidad
ResponsabilidadResponsabilidad
Responsabilidad
 
Stop motion
Stop motionStop motion
Stop motion
 

Similar to Estado da Arte HTML5

ITCamp 2012 - Alessandro Pilotti - Web API, web sockets and RSignal
ITCamp 2012 - Alessandro Pilotti - Web API, web sockets and RSignalITCamp 2012 - Alessandro Pilotti - Web API, web sockets and RSignal
ITCamp 2012 - Alessandro Pilotti - Web API, web sockets and RSignal
ITCamp
 

Similar to Estado da Arte HTML5 (20)

Make the Shift from Manual to Automation with Open Source
Make the Shift from Manual to Automation with Open SourceMake the Shift from Manual to Automation with Open Source
Make the Shift from Manual to Automation with Open Source
 
JCON_15FactorWorkshop.pptx
JCON_15FactorWorkshop.pptxJCON_15FactorWorkshop.pptx
JCON_15FactorWorkshop.pptx
 
MadridJug From Monolith to k8s with Jenkins X and Zeebe
MadridJug From Monolith to k8s with Jenkins X and ZeebeMadridJug From Monolith to k8s with Jenkins X and Zeebe
MadridJug From Monolith to k8s with Jenkins X and Zeebe
 
HTML5 and Google Chrome - DevFest09
HTML5 and Google Chrome - DevFest09HTML5 and Google Chrome - DevFest09
HTML5 and Google Chrome - DevFest09
 
"The working architecture of NodeJs applications" Viktor Turskyi
"The working architecture of NodeJs applications" Viktor Turskyi"The working architecture of NodeJs applications" Viktor Turskyi
"The working architecture of NodeJs applications" Viktor Turskyi
 
Java @ Cloud - Setor Público SP
Java @ Cloud - Setor Público SPJava @ Cloud - Setor Público SP
Java @ Cloud - Setor Público SP
 
What's new in App Engine and intro to App Engine for Business
What's new in App Engine and intro to App Engine for BusinessWhat's new in App Engine and intro to App Engine for Business
What's new in App Engine and intro to App Engine for Business
 
Plone FSR
Plone FSRPlone FSR
Plone FSR
 
Building modern web sites with ASP .Net Web API, WebSockets and RSignal
Building modern web sites with ASP .Net Web API, WebSockets and RSignalBuilding modern web sites with ASP .Net Web API, WebSockets and RSignal
Building modern web sites with ASP .Net Web API, WebSockets and RSignal
 
ITCamp 2012 - Alessandro Pilotti - Web API, web sockets and RSignal
ITCamp 2012 - Alessandro Pilotti - Web API, web sockets and RSignalITCamp 2012 - Alessandro Pilotti - Web API, web sockets and RSignal
ITCamp 2012 - Alessandro Pilotti - Web API, web sockets and RSignal
 
Advanced Strategies for Testing Responsive Web
Advanced Strategies for Testing Responsive WebAdvanced Strategies for Testing Responsive Web
Advanced Strategies for Testing Responsive Web
 
Node.js what's next (Index 2018)
Node.js what's next (Index 2018)Node.js what's next (Index 2018)
Node.js what's next (Index 2018)
 
#1 - HTML5 Overview
#1 - HTML5 Overview#1 - HTML5 Overview
#1 - HTML5 Overview
 
HTML5 in IE9
HTML5 in IE9HTML5 in IE9
HTML5 in IE9
 
GIDS_15FactorWorkshop.pdf
GIDS_15FactorWorkshop.pdfGIDS_15FactorWorkshop.pdf
GIDS_15FactorWorkshop.pdf
 
JUNIPER: Towards Modeling Approach Enabling Efficient Platform for Heterogene...
JUNIPER: Towards Modeling Approach Enabling Efficient Platform for Heterogene...JUNIPER: Towards Modeling Approach Enabling Efficient Platform for Heterogene...
JUNIPER: Towards Modeling Approach Enabling Efficient Platform for Heterogene...
 
Continuous Delivery di una WebApp - by example
Continuous Delivery di una WebApp - by exampleContinuous Delivery di una WebApp - by example
Continuous Delivery di una WebApp - by example
 
Continuous Delivery di una webapp by example - Fabio Mora - Codemotion Roma 2015
Continuous Delivery di una webapp by example - Fabio Mora - Codemotion Roma 2015Continuous Delivery di una webapp by example - Fabio Mora - Codemotion Roma 2015
Continuous Delivery di una webapp by example - Fabio Mora - Codemotion Roma 2015
 
SOA Knowledge Kit, Developer Productivity and Performance Comparison Analysis
SOA Knowledge Kit, Developer Productivity  and Performance Comparison AnalysisSOA Knowledge Kit, Developer Productivity  and Performance Comparison Analysis
SOA Knowledge Kit, Developer Productivity and Performance Comparison Analysis
 
How to Build Single Page HTML5 Apps that Scale
How to Build Single Page HTML5 Apps that ScaleHow to Build Single Page HTML5 Apps that Scale
How to Build Single Page HTML5 Apps that Scale
 

More from MCM-IPG

Mobile Web Ubíqua
Mobile Web UbíquaMobile Web Ubíqua
Mobile Web Ubíqua
MCM-IPG
 
Segurança em Bluetooth
Segurança em BluetoothSegurança em Bluetooth
Segurança em Bluetooth
MCM-IPG
 
IDog Um gadget que é um cão de guarda
IDog Um gadget que é um cão de guardaIDog Um gadget que é um cão de guarda
IDog Um gadget que é um cão de guarda
MCM-IPG
 
Avaliação em mobile Websites
Avaliação em mobile WebsitesAvaliação em mobile Websites
Avaliação em mobile Websites
MCM-IPG
 
KNX Automatica
KNX Automatica KNX Automatica
KNX Automatica
MCM-IPG
 

More from MCM-IPG (6)

Mobile Web Ubíqua
Mobile Web UbíquaMobile Web Ubíqua
Mobile Web Ubíqua
 
Segurança em Bluetooth
Segurança em BluetoothSegurança em Bluetooth
Segurança em Bluetooth
 
Carpool
CarpoolCarpool
Carpool
 
IDog Um gadget que é um cão de guarda
IDog Um gadget que é um cão de guardaIDog Um gadget que é um cão de guarda
IDog Um gadget que é um cão de guarda
 
Avaliação em mobile Websites
Avaliação em mobile WebsitesAvaliação em mobile Websites
Avaliação em mobile Websites
 
KNX Automatica
KNX Automatica KNX Automatica
KNX Automatica
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Estado da Arte HTML5

  • 1. HTML5, State of art june, 2 Presented by Nelson Monteiro, 5242 1
  • 2. Agenda • What is HTML5 • State of mobile web • HTML5 brief history development • Where are we now? – HTML5 API usage • Mobile webkit browsers – Mobile browser os support choice • New rules/ new tags • Native apps vs Web apps – semantic web • Advantages of mobile apps using html5 – video • Examples – canvas • Useful links – local storage • Questions? – geolocation – offline applications 1º Simpósio do Mestrado em Computação Móvel 2 2
  • 3. What is HTML5 • the natural evolution of html? • the lost battle of xhtml2? • the union between whatwg an w3c? • the end of native apps? • HTML + CSS + javascript? 1º Simpósio do Mestrado em Computação Móvel 3 3
  • 4. HTML5 brief history • 1999: HTML 4.01 was released • 2002: w3c start XHTML2 • 2004: Web Hypertext Application Technology Working Group (WHATWG) - Apple, Mozilla and Opera - started work on Web Applications 1.0 • 2007: W3C drops XHTML and forms HTMLWG • 2008: first draft of HTML5 is published • June 2011: HTML5 Working Draft has reached its Last Call milestone 1º Simpósio do Mestrado em Computação Móvel 4 4
  • 5. Where are we now? • Current State: http://www.whatwg.org/specs/web-apps/current-work/multipage/ 1º Simpósio do Mestrado em Computação Móvel 5 5
  • 6. Mobile webkit browsers support http://radar.oreilly.com/2010/05/mobile-operating-systems-and-b.html 1º Simpósio do Mestrado em Computação Móvel 6 6
  • 7. New rules/ new tags Semantic Web • Before HTML5 • After HTML5 1º Simpósio do Mestrado em Computação Móvel 7 7
  • 8. New rules/ new tags Video <video width="640" height="360" controls> <source src="vid.mp4" type="video/mp4" /><!-- Safari / iOS video --> <source src="vid.ogv" type="video/ogg" /><!-- Firefox3.6+ / Opera 10.5+ --> <source src="vid.webm" type="video/webm" /><!-- Chrome10+, Ffx4+, Opera10.6+ --> </video> http://diveintohtml5.org/video.html 1º Simpósio do Mestrado em Computação Móvel 8 8
  • 9. New rules/ new tags Video 1º Simpósio do Mestrado em Computação Móvel 9 9
  • 10. New rules/ new tags Video Advantages: • no plugins needed • direct video watching • interaction between video and web app 1º Simpósio do Mestrado em Computação Móvel 10 10
  • 11. New rules/ new tags Canvas <script type="text/javascript"> if (Modernizr.canvas) { var c = document.createElement('canvas'); var context = c.getContext('2d'); // context.fillStyle = "rgb(200,0,0)"; context.fillRect (10, 10, 55, 50); context.fillStyle = "rgba(0, 0, 200, 0.5)"; context.fillRect (30, 30, 55, 50); // document.getElementById('chartContainer').appendChild(c); } </script> http://diveintohtml5.org/canvas.html 1º Simpósio do Mestrado em Computação Móvel 11 11
  • 12. New rules/ new tags Canvas 1º Simpósio do Mestrado em Computação Móvel 12 12
  • 13. New rules/ new tags Canvas Advantages: • no plugins needed • creating interactive/ dynamic charts • creating interactive/ dynamic maps 1º Simpósio do Mestrado em Computação Móvel 13 13
  • 14. New rules/ new tags Local Storage function saveGameState() { if (!supportsLocalStorage()) { return false; } localStorage["halma.game.in.progress"] = gGameInProgress; for (var i = 0; i < kNumPieces; i++) { localStorage["halma.piece." + i + ".row"] = gPieces[i].row; localStorage["halma.piece." + i + ".column"] = gPieces[i].column; } http://diveintohtml5.org/storage.html 1º Simpósio do Mestrado em Computação Móvel 14 14
  • 15. New rules/ new tags Local Storage 1º Simpósio do Mestrado em Computação Móvel 15 15
  • 16. New rules/ new tags Local Storage Advantages: • persists beyond a page refresh • on the client • isn’t transmitted to the server • 5 Mb of storage 1º Simpósio do Mestrado em Computação Móvel 16 16
  • 17. New rules/ new tags Geolocation function get_location() { navigator.geolocation.getCurrentPosition(show_map); } function show_map(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; // let's show a map or do something interesting! } http://diveintohtml5.org/geolocation.html 1º Simpósio do Mestrado em Computação Móvel 17 17
  • 18. New rules/ new tags Geolocation 1º Simpósio do Mestrado em Computação Móvel 18 18
  • 19. New rules/ new tags Geolocation Advantages: • no plugins needed • show current location on map • deliver content for your location only 1º Simpósio do Mestrado em Computação Móvel 19 19
  • 20. New rules/ new tags Offline Application <!DOCTYPE HTML> CACHE  MANIFEST <html manifest="/cache.manifest"> /clock.css <body> /clock.js ... /clock-­‐face.jpg </body> </html> http://diveintohtml5.org/offline.html 1º Simpósio do Mestrado em Computação Móvel 20 20
  • 21. New rules/ new tags Offline Application Advantages: • Working with the application offline • New data downloaded when online again 1º Simpósio do Mestrado em Computação Móvel 21 21
  • 22. State mobile web development • HTML5 API usage http://www.webdirections.org/sotmw2011/technologies/ 1º Simpósio do Mestrado em Computação Móvel 22 22
  • 23. State mobile web development • HTML5 API usage http://www.webdirections.org/sotmw2011/technologies/ 1º Simpósio do Mestrado em Computação Móvel 23 23
  • 24. State mobile web development • Mobile browser os choice http://www.webdirections.org/sotmw2011/browsers-and-platforms/ 1º Simpósio do Mestrado em Computação Móvel 24 24
  • 25. Native apps vs. Web apps Native Web • access to app store • no app store • access to device api • no access to device api • native UI experience • challenge creating device UI • good performance • smaller performance • bigger learning curve • ease of learning • no cross platform • ease of cross platform deployment development • long development time • ease of development • upgrades need to be • instant upgrades submited to app store • no app store restrictions • App store restrictions 1º Simpósio do Mestrado em Computação Móvel 25 25
  • 26. Advantages of mobile apps using html5 • Geolocation API • Offline Storage • Offline Cache • Multi-touch Event API • Vídeo • Canvas • Fancier styles and transitions • Great javascript engine 1º Simpósio do Mestrado em Computação Móvel 26 26
  • 27. Examples • http://optimus.usatoday.com/ • http://foursquareplayground.com/ • http://everytimezone.com/ 1º Simpósio do Mestrado em Computação Móvel 27 27
  • 28. Useful links • http://www.slideshare.net/MrJ1971/html5-and-the-mobile-web • http://www.slideshare.net/glenn.kelman/html-5-vs-native-mobile-applications • http://www.slideshare.net/phish108/html5-for-mobiles • http://www.slideshare.net/brucelawson/web-anywhere-mobile-optimisation- with-html5-css3-javascript • http://www.slideshare.net/didoo/html5-for-mobile • http://www.slideshare.net/batmoo/html5-css3-and-other-fancy-buzzwords • http://www.slideshare.net/wolframkriesing/html5-apps-mobile-developer- summit-bangalore • http://www.slideshare.net/docdoku/html-5-ou-lvolution-majeure-du-web-et- de-linternet-mobile • http://www.slideshare.net/pp.koch/the-future-of-the-mobile-web • http://www.slideshare.net/marcelioleal/html5overviewpdf • http://www.slideshare.net/zibin/brief-history-of-html5-7977732 • http://www.slideshare.net/elisabethrobson/html5-whats-it-all-about • http://www.slideshare.net/marcelioleal/html5overviewpdf • http://www.whatwg.org/specs/web-apps/current-work/multipage/ • http://devfiles.myopera.com/articles/572/idlist-url.htm 1º Simpósio do Mestrado em Computação Móvel 28 28
  • 29. Questions? 1º Simpósio do Mestrado em Computação Móvel 29 29