HTML5 Developer's Cookbook

Author: Chuck Hudson & Tom Leadbetter
Publisher: Addison-Wesley
Pages: 480
ISBN: 978-0321769381
Aimed at: JavaScript programmers
Rating: 4
Pros: Tackles topics in a highly practical way
Cons: Disconcerting layout, some code presented without sufficient explanation
Reviewed by: Ian Elliot

 

HTML5 isn't a programming language, but it is having a profound effect on programming. Does it merit a cookbook style approach?

The trouble with cookbooks is that they are often misnamed introductions to topics. A good cookbook should show you how to do standard and common tasks that, without its help, might be difficult even if you know a bit about the subject. This particular cookbook takes an interesting approach in that it labels its recipes with beginner, intermediate and advanced.

 

Banner

 

The book starts off with a look at HTML5, i.e the new tags and the way that they should be used. The first two chapters explain the way that the new semantic tags should be used. As you might expect for this sort of topic the recipes are not very deep, even when they get the "advanced" label. These chapters are really an introduction to HTML5 presented as a cookbook. If you like this sort of presentation then there is no problem. However, you do need to know that the actually layout of the book isn't easy on the eye. The text is small and the layout crushed - which makes the, sometimes long, listings more difficult to read.

Chapter 3 is the start of an increase in the technical level of the book. It is about the browser compatibility problem. The recipes are about testing for HTML5 features and using jQuery and Modernizr to make up for missing features.

Chapter 4 deals with CSS3 and the new features such as gradient fills, animation and so on. Chapter 5 is about the new web form tags and here the recipe format works best with lots of standard tasks explained. Chapter 6, however, is more like an introduction to Canvas chopped up into recipes - the level is fairly basic.

From about this point in the book the emphasis moves to the APIs that have been introduced with HTML5. Chapter 7 introduces the video tag and the media API. This is a bit more advanced than earlier chapters but it would benefit from being longer as this is an important and tricky topic. Chapter 8 deals with audio in the same way. Both chapters have examples that run over several pages of listings.

The rest of the book has chapters on the browser API, the Geolocation API, client-side storage, websocket API, Web Workers, drag-and-drop API, cache API, Notification API, local file and the device API. Most of the topics start with a brief introduction and then move on to more advanced and occasionally quite long examples.

If you like learning from examples then you will like this book but be warned there are some very long code listings with little accompanying explanations. However none of the code does anything difficult so you should find it easy enough to follow - if occasionally a bit tedious.

The book doesn't really fit into the cookbook pattern; it is more like a set of examples designed to show you how the basic ideas work. Overall, it is a reasonably successful explanation of HTML5 and if you like a practical approach it is a good choice.

 

Banner


Head First HTML and CSS, 2nd Ed

Author: Elisabeth Robson and Eric Freeman
Publisher: O'Reilly
Pages: 768
ISBN: 978-0596159900
Audience: Beginners
Rating: 4
Reviewer: Ian Elliot

Head First books are designed to get you started. How far does this one go with HTML and CSS?



C Programming Absolute Beginner's Guide (3e)

Authors: Greg Perry & Dean Miller
Publisher: Que
Pages: 352
ISBN: 978-0789751980
Audience: Complete beginners
Rating: 4.5
Reviewer: Mike James

C a language for the absolute beginner! Can a book that uses C take you on the journey to become a programmer?


More Reviews

Last Updated ( Saturday, 31 March 2012 )
 
 

   
RSS feed of book reviews only
I Programmer Book Reviews
RSS feed of all content
I Programmer Book Reviews
Copyright © 2014 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.