Review: Mobile HTML5 by Estelle Wyll

Date: Wed Jan 01 2014 Mobile Applications »»»» HTML5 »»»» Reviews
Mobile internet devices like smart cellphones or tablets are taking the computing world by storm. Each year they're getting more powerful, with Tablet computers offering most of the capability of a laptop in a far more easily carried package. Therefore it's more and more important that software engineers learn how to build applications for these gizmos. That's where the book Mobile HTML5 comes in, by helping you understand one model - using modern HTML5, CSS3 and JavaScript techniques to build applications that work great on mobile devices and even desktop computers.

This approach offers the flexibility of just building a website that happens to, when accessed using a mobile device, work well as an App. An example is http://forecast.io/ which, if accessed on a mobile device, installs itself as an App on mobile devices without having to access an App Store, but also works well in desktop browsers.

Targeting mobile devices gives you the freedom to concentrate on modern HTML5, CSS3 and JavaScript. The leading mobile devices all have modern web browsers supporting the leading edge of web technology. While Internet Exploiter is still the bane of developers targeting desktop computer users, we don't have this limitation in the mobile world.

Most of Mobile HTML5 concerns itself with the ins-and-outs of HTML5, CSS3 and JavaScript. It focuses directly at the modern web technologies, and the best practices to use use them on mobile devices. The goal is to develop "kickass websites for mobile" but that doesn't mean they're eschewing desktop devices. So long as the desktop user has a modern browser (Chrome, Firefox) that mobile website will work fine on the desktop. While the authors of the book have decided "we don't need to think about archaic browsers" the book shows us how to handle the quirks, tips and tricks necessary to implement something on desktop computers with deficient archaic browsers.

Face it, Internet Exploiter has been holding the web back for years.

The introduction for the book makes a strong case for not only skipping past Internet Exploiter and other archaic browsers, but also to skip past the App Store's and their rigid strict requirements. Mobile web applications can be installed directly on the device, bypassing the App Store, and can be updated more frequently by the application author. Try that on an App Store.

So, what's in the book? Glad you asked.

The first part lays the ground by helping you set up a development environment, and showing you what's new in HTML5. You probably already know HTML, but need to brush up on the best practices in semantic markup for both mobile and desktop, web forms, geolocation, and more. It also touches on media-rich HTML5 elements like SVG, canvas, video, audio, AppCache, database and web workers. The AppCache, local storage, and local SQL storage features let you build an offline disconnected application running in the browser, storing data on the device, while you don't have to manage any user data on your server.

The next segment of the book tells you about CSS3, including color types, shadows, border images, animation, and more. One chapter focuses on responsive web design techniques.

The last segment of the book focuses on the mobile platform, such as touch events, user experience for mobile users, and performance considerations.

The book has you working directly in the actual code and markup, rather than working through a library or framework. They say this is to "ensure that you learn actual code" and to "remove any confusion there may be as to whether a method is native or a framework method." That's not a condemnation of the libraries, however, because the author thinks "open source libraries are some of the best places to find out about browser quirks."

The writing style is very personal and direct, and shows a deep experience with the technology covered in the book.

Mobile HTML5 will be most helpful for any developer who needs to understand targeting mobile devices. However it doesn't show you how to package that application for an App Store. HTML5, CSS3 and JavaScript are the ever-more-capable foundation stones for building applications, and this book is a great introduction.

You can find out more about Mobile HTML5 on the O'Reilly website, or on Amazon.com Mobile HTML5.