@toddanglin<br />
31% of all Internet use in Nigeria is mobile<br />
The Internet is Mobile<br />
100m<br />81m<br />
Which devices matter?<br />
iOS<br />Android<br />Symbian<br />RIM<br />MSFT<br />…<br />KR<br />WEBKIT<br />98%<br />USA<br />69%<br />UK<br />58%<br...
HTML5 standard maximizes reusability<br />
considerations<br />Native-ness<br />Screen Size<br />Interaction<br />Look-and-feel<br />Bandwidth<br />
What is a “native” app?<br />
When is a pixel not a pixel?<br />
320px<br />980px<br />
CSS pixelsvs.Physical Pixels<br />
“If the pixel density of the output device is very different from that of a typical computer display, the user agent shoul...
ViewPort<br />Configurable<br /><meta name="viewport" content="width=device-width, initial-scale=1.0"><br />Optional: user...
media queries<br />Target styles to specific devices…<br />And features!<br />/*These two rules do the same thing*/<br />@...
<meta><br />Rendering hints for mobile browsers<br /><meta name="viewport" content="width=device-width, initial-scale=1.0"...
It’s a Touch,Not a Click. Right?<br />
Touch<br />Events<br />touchstart<br />touchmove<br />touchend<br />touchcancel<br />gesturestart*<br />gesturechange*<br ...
touch<br />Accuracy<br />Size<br />Shape<br />Placement<br />Overlapping<br />
frameworks<br />
Mobile Internet is unpredictable.<br />
bandwidth<br />Optimize design<br />Clicks/Screens<br />Graphics<br />Selectively load resources<br />
Future<br />“Windows 8”<br />Chrome OS<br />Facebook<br />
@htmlui<br />
Resources<br />
Upcoming SlideShare
Loading in …5
×

HTML5 for Tablets and Mobile

8,687 views

Published on

The explosion of HTML5-ready tablets and mobile devices has been one of the primary forces behind HTML5’s rapid coming of age. Virtually all modern devices with a web browser have broad support for the technologies defined by HTML5, like Video, Geolocation, Offline Apps, Local Storage, and CSS3 styling, making them the perfect target for aggressive HTML5 development. Targeting the look-and-feel, touch-based input, and varying screen sizes of devices can be tricky, though. This session will introduce you to the essential concepts for targeting HTML5 devices, such as Media Queries and Viewport sizing, and provide you with the tips and tricks you need to successfully develop modern web apps for tablets and mobile devices today.

Published in: Technology, Design
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
8,687
On SlideShare
0
From Embeds
0
Number of Embeds
1,313
Actions
Shares
0
Downloads
79
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • HTML5 for Tablets &amp; Mobile DevicesThis session will introduce you to the essential concepts for targeting HTML5 devices, such as Media Queries and Viewport sizing, and provide you with the tips and tricks you need to successfully develop modern web apps for tablets and mobile devices today.The explosion of HTML5-ready tablets and mobile devices has been one of the primary forces behind HTML5’s rapid coming of age. Virtually all modern devices with a web browser have broad support for the technologies defined by HTML5, like Video, Geolocation, Offline Apps, Local Storage, and CSS3 styling, making them the perfect target for aggressive HTML5 development. Targeting the look-and-feel, touch-based input, and varying screen sizes of devices can be tricky, though. This session will introduce you to the essential concepts for targeting HTML5 devices, such as Media Queries and Viewport sizing, and provide you with the tips and tricks you need to successfully develop modern web apps for tablets and mobile devices today.
  • http://www.quirksmode.org/blog/archives/2011/06/mobile_browser_9.html20% in India, 11% in Indonesia. Compares to 6% in US and UK.Unfortunately, development countries largely on Opera Mini and Nokia
  • Q1 2011 PC sales slide for first time (down 3%): http://www.businessinsider.com/trouble-for-microsoft-pc-market-tanks-in-q1-2011-4Smart Phone Q1 2011 shipments: http://www.pdasnews.com/articles/idc-smartphone-shipment-figures-for-q1-2011.htmlThis is a trend now. First time SmartPhones out shipped PCs was Q42010. Stories from that time:http://www.chrisumiastowski.com/smartphone-market-bigger-than-pc-market-what-does-it-meanhttp://www.readwriteweb.com/archives/smartphones_outsell_pcs.php
  • Q1 2011 Worldwide DataiOS = 16.8%Android = 36%Symbian = 27.4%RIM = 12.9%MSFT = 3.6%Other = 3.3%Browser share stats (Q1 2011): http://www.quirksmode.org/blog/archives/2011/06/mobile_browser_9.html
  • Looks right.Feels right.Available anytime.“Installable.”In an app store?
  • When is a pixel not a pixel?Visual vs. Layout ViewPort
  • http://www.quirksmode.org/mobile/viewports2.htmlhttp://www.quirksmode.org/blog/archives/2010/04/a_pixel_is_not.htmlhttps://developer.mozilla.org/en/Mobile/Viewport_meta_tag
  • https://developer.mozilla.org/en/Mobile/Viewport_meta_tag#A_pixel_is_not_a_pixel
  • Density of pixel displays:http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density
  • http://www.webdesignerwall.com/tutorials/css3-media-queries/http://www.w3.org/TR/css3-mediaqueries/Code for targeting iPhone: http://perishablepress.com/press/2010/10/20/target-iphone-and-ipad-with-css3-media-queries/
  • http://matt.might.net/articles/how-to-native-iphone-ipad-apps-in-javascript/http://html5boilerplate.com/docs/#the-markuphttp://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html#//apple_ref/doc/uid/TP40008193Discussion of viewport and older mobile meta tags: http://davidbcalhoun.com/tag/handheldfriendly
  • Article on iPhone touch considerations: http://oreilly.com/iphone/excerpts/iphone-programming-user/touch-patterns.html
  • http://www.the-m-project.org/http://www.appcelerator.com/products/titanium-mobile-application-development/http://jquerymobile.com/http://jqtouch.com/http://www.sencha.com/products/touch/Good comparison:http://stackoverflow.com/questions/5063117/choosing-mobile-web-html5-framework
  • http://www.digitaltrends.com/mobile/smartphone-buyers-dont-care-about-4g-yet-study-shows/http://www.informationweek.com/news/mobility/3G/231000200Current generation of smartphone buyers not interest in paying premium for 4G or faster phones.
  • Motorola device images: http://mediacenter.motorola.com/imagelibrary/default.aspx?SubjectID=195LG images: http://www.lgnewsroom.com/ces2011/list.php?product_type=1HP Palm:http://www.hpwebos.com/us/company/media-library/media-library.html?checkbox-accept=acceptRIM/Blackberry:http://www.rim.com/newsroom/mediagallery/Apple: http://www.apple.com/pr/products/
  • HTML5 for Tablets and Mobile

    1. 1.
    2. 2. @toddanglin<br />
    3. 3. 31% of all Internet use in Nigeria is mobile<br />
    4. 4. The Internet is Mobile<br />
    5. 5. 100m<br />81m<br />
    6. 6. Which devices matter?<br />
    7. 7. iOS<br />Android<br />Symbian<br />RIM<br />MSFT<br />…<br />KR<br />WEBKIT<br />98%<br />USA<br />69%<br />UK<br />58%<br />CN<br />32%<br />
    8. 8. HTML5 standard maximizes reusability<br />
    9. 9. considerations<br />Native-ness<br />Screen Size<br />Interaction<br />Look-and-feel<br />Bandwidth<br />
    10. 10. What is a “native” app?<br />
    11. 11.
    12. 12. When is a pixel not a pixel?<br />
    13. 13. 320px<br />980px<br />
    14. 14. CSS pixelsvs.Physical Pixels<br />
    15. 15. “If the pixel density of the output device is very different from that of a typical computer display, the user agent should rescale pixel values.”<br />- CSS 2.1<br />
    16. 16. ViewPort<br />Configurable<br /><meta name="viewport" content="width=device-width, initial-scale=1.0"><br />Optional: user-scalable=no<br /> target-densitydpi=device-dpi (Android Only)<br />
    17. 17. media queries<br />Target styles to specific devices…<br />And features!<br />/*These two rules do the same thing*/<br />@media all and (min-width:500px) { … } <br />@media (min-width:500px) { … }<br />/*Multiple conditions*/<br />@media only screen and (min-width: 600px) and (max-width: 900px) {<br /> .class {<br /> background: #333;<br /> }<br />}<br />
    18. 18. <meta><br />Rendering hints for mobile browsers<br /><meta name="viewport" content="width=device-width, initial-scale=1.0"><br />Optional: user-scalable=no<br />target-densitydpi=device-dpi (Android Only)<br /><!--iOS specific--><br /><meta name="apple-mobile-web-app-capable" content="yes"><br /><meta name="apple-mobile-web-app-status-bar-style" content="black" /><br /><link rel="apple-touch-icon" href="./apple-touch-icon.png" /><br />
    19. 19. It’s a Touch,Not a Click. Right?<br />
    20. 20. Touch<br />Events<br />touchstart<br />touchmove<br />touchend<br />touchcancel<br />gesturestart*<br />gesturechange*<br />gestureend*<br />
    21. 21. touch<br />Accuracy<br />Size<br />Shape<br />Placement<br />Overlapping<br />
    22. 22. frameworks<br />
    23. 23. Mobile Internet is unpredictable.<br />
    24. 24. bandwidth<br />Optimize design<br />Clicks/Screens<br />Graphics<br />Selectively load resources<br />
    25. 25. Future<br />“Windows 8”<br />Chrome OS<br />Facebook<br />
    26. 26. @htmlui<br />
    27. 27. Resources<br />

    ×