Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours

Description

In just 24 sessions of one hour or less, learn how to build rich, robust mobile apps that run on smartphones, tablets, and other devices and interact with users in powerful new ways. Using this book’s straightforward, step-by-step approach, you’ll master leading-edge practical skills you can use whether you’re developing for the iPad/iPhone or Android. Discover how to quickly build new mobile apps and upgrade older apps, provide cutting-edge media content, leverage advanced features ranging from geolocation to the semantic web, and even simplify complex back-end development. Each lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success!

Step-by-step instructions carefully walk you through the most common HTML5 mobile development tasks.

Quizzes and Exercises at the end of each chapter help you test your knowledge.

By the Way notes present interesting information related to the discussion.

Did you Know? tips offer advice or show you easier ways to perform tasks.

Watch Out! cautions alert you to possible problems and give you advice on how to avoid them.

Learn how to…

Work with the new HTML5 tags most valuable for mobile development

Get started fast with HTML5 features already supported by today’s browsers

Detect mobile devices and HTML5 support and upgrade sites to support them

Style and build more efficient, usable mobile pages

Use jQuery Mobile to quickly create mobile apps

Leverage HTML5’s breakthrough drawing and typography features

Efficiently integrate media content into your apps

Add meaning with HTML5 sectioning and semantic elements

Implement drag-and-drop more easily than ever

Build offline applications and other apps that use local storage

Detect and work with location data via the GeoLocation API

Use microformats and microdata to make web pages friendlier to computers

Hour 2: New HTML5 Tags and Attributes with Mobile Development 15The New HTML5 Tags 15The New HTML5 Attributes 24Changes to HTML 4 Tags and Attributes 25Changes to HTML Syntax in HTML5 27Mobile Support of HTML5 Tags and Attributes 28Benefits of HTML5 for Mobile Web Development 29Summary 30Q&A 30Workshop 31

Hour 6: Building a Mobile Web Application 85Building a Site that Works on All Devices 85Deciding on What Type of Application You Want 86Building the Application in HTML 89Using CSS to Make the HTML Look Good 91Adding Mobile Meta Tags for More Effective HTML5 Pages 96Optimizing Your Site for Mobile 99Summary 102Q&A 102Workshop 103

Hour 7: Upgrading a Site to HTML5 105Deciding When and How to Upgrade from HTML 4 105HTML5 Features that Work Right Now 111The State of HTML5 Browser Support 112Adding HTML5 Features as Extras on Your Site 113HTML5 Features that Turn Your Site into a Killer Mobile Application 115Summary 116Q&A 116Workshop 118

Hour 22: Controlling the Browser History with the History API 373Why Control the Browser History? 373History API Methods 375Using the History API 375Dangers and Annoyances of the History API 383Summary 384Q&A 385Workshop 386