Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

HTML5 for Tablets and Mobile

8,888 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
  • Be the first to comment

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

×