Slashdot Mirror


Book Review: HTML5 Developer's Cookbook

stoolpigeon writes "HTML5 is the latest version of HTML. In fact, it is still under development — but HTML5 brings so many highly-desired capabilities that browsers have begun to implement it and many projects already take advantage of it. Often an HTML5 project employs more technology than just HTML, and the label has come to include the use of CSS3 and JavaScript as well. There are a number of resources out there to help one use HTML5 and recently I've been using the HTML5 Developer's Cookbook by Chuck Hudson and Tom Leadbetter." Read on for the rest of stoolpigeon's review. HTML5 Developer's Cookbook author Chuck Hudson, Tom Leadbetter pages 480 publisher Addison-Wesley Professional rating 9/10 reviewer stoolpigeon ISBN 978-0-321-76938-1 summary HTML5 Developer's Cookbook I like the cookbook format myself in situations like this. I'm already familiar with HTML but I want to learn about the new features that exist in HTML5. This means I'm not nearly as interested in explanations, especially in the basics, as I am in getting a big diff on the languages with lots of examples and only as much explanation as necessary. Though the trick for authors is to walk the fine line between too much explanation and not enough. If they get too wordy, it really isn't a cook book any more. Not enough explanation and it can become difficult to understand all the issues that come to bear with an example. This is especially true when dealing with something that is new and still in development.

HTM5 Developer's Cookbook walks this line well. Hudson and Leadbetter have organized the recipes into various categories and further labeled them with a level of difficulty. Recipes are marked as beginner, intermediate and advanced. I found the labels helpful because while I've mucked about with HTML and its corresponding tech, I felt more comfortable easing in on the beginner end first. If I were working with someone who was a true beginner to working with any kind of development, I would probably not start them off with a cook-book. I think that is especially the case here because so much of HTML is not covered. This is not an exhaustive resource on HTML but rather a set of explanations and examples on what is new or different in this latest version of HTML.

The book itself begins with a quick review of how we got to where we are, a bit of HTML history. The chapters follow this pattern, starting with some history where needed and an explanation of the new technology driving the examples that are to follow. Then there are the recipes themselves, followed up by any helpful information and a summary. There's more prose than I've seen in many other cook-books but in this case I didn't see it as a negative. The authors assume that readers are familiar with the old approach and they need to explain how the new approach is different. In some cases tags have changed meaning, this needs to be spelled out.

Hudson and Leadbetter deal with handling how various browsers support (or don't) the various aspects of HTML5 that they highlight. This is especially important as everything is still in flux. Though if past history is any indicator, even if the spec were completely nailed down, there would still be differences between browsers. This does bring up an important question though. This book has a definite shelf life. As HTML5 continues to develop there are many parts that may become inaccurate. This is true of most tech books, but doubly so in this case. If someone is looking for a timeless tome on the topic, this wouldn't be it. In my case, it's a timely resource to get up to speed quickly, from a single source that I trust. I can search the web and find a mixed bag or turn to this one spot to get quickly up to speed.

I had an electronic version of the book made available from the publisher for this review. I've found that format to be very helpful in this case. It keeps me from feeling at all guilty about buying a book with such a narrow window of usefulness. I also really enjoy being able to jump straight to recipes. There is a list of just the recipes at the end of the book that are linked directly to each that make this especially easy. I'm rapidly moving away from dead tree books, and I didn't feel any reason here to miss that format. (On a side note, I got the page count above from Amazon. I wonder what metric we'll be using to judge book size in the future? Word count?)

All of the chapter titles and recipes are available on line. From new structural elements to integrating with devices, there are plenty of practical and useful examples. I couldn't find a clear statement in the text of the book on readers being given the freedom to use the recipes directly in code. This surprised me so I checked with the publisher and they told me that all code is free to use. Maybe that is not necessary here because everything shown is just an example of following the specification, but given the current climate with regards to intellectual property I wanted to be sure.

I've rated the book 9 out of 10 due to the fact that I think the authors do a great job of not wasting my time but instead quickly deliver what I need. If you want to get a feel for what is up with HTML5 yourself, I recommend this as a great option. If you are interested in a more comprehensive review of HTML in general or how to create web pages, I would find something more suited to providing an introduction to web programming.

You can purchase HTML5 Developer's Cookbook from amazon.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

10 of 42 comments (clear)

  1. What Did You Find Particularly Useful? by Kneo24 · · Score: 3

    What sections of the book did you find the most useful in the book? Why were they the most useful for you?

  2. Re:Google is one of the pioneers of HTML5 by Anonymous Coward · · Score: 2

    Android has terrible HTML5 support in the default browser and Chrome for Android isn't much better. Also WHATWG was founded by members of Apple, Mozilla and Opera. Google didn't join until later when Hickson went to Google. And they didn't fight against H.264 otherwise they would have removed support for it from Chrome like they said they would but didn't. But hey, I'm sure they paid well for this shilling so congrats.

  3. No, it hasn't. by Jane+Q.+Public · · Score: 3, Insightful

    "Often an HTML5 project employs more technology than just HTML, and the label has come to include the use of CSS3 and JavaScript as well."

    No, it hasn't. HTML5 is HTML5, CSS is CSS, and JavaScript is JavaScript.

    As a comparison, programming in Rails today includes knowledge of Ruby, JavaScript, CoffeeScript, CSS, and SCSS, and even more... yet nobody confuses any of those with Rails.

    Just as nobody I know has confused CSS or JavaScript with HTML5.

    1. Re:No, it hasn't. by cmburns69 · · Score: 5, Insightful

      That's being pedantic. Whenever I hear HTML5, I don't think of just a document marked up with the 5th major revision of HTML, I think of a DOM (defined using the 5th revision of HTML) and enriched by functionality provided by one or more turing complete languages (usually javascript), and with presentation dictated by style rules (defined using CSS).

      Does HTML5 mean to include CSS and javascript? Strictly speaking, no. But in practical usage, yes.

      --
      Online Starcraft RPG? At
      Dietary fiber is like asynchronous IO-- Non-blocking!
    2. Re:No, it hasn't. by shdowhawk · · Score: 2

      Most everyone I know associates "HTML5" to be the bundled package of pre-made functions/rendering engines from browsers that let you use do interesting things with CSS3, javascript, as well as the new markup language tags. This includes things like the "canvas". According to the doctype on HTML5 pages... the markup language is just called "html".

    3. Re:No, it hasn't. by Jane+Q.+Public · · Score: 2

      I think you missed the point though. The markup language is indeed called html. But CSS and JavaScript are not, strictly speaking, part of that markup language. Html consists of tags, and CSS and JavaScript are tools that DO THINGS to enhance and modify those tags... they are not part of those tags.

      In a similar vein, I can have a collection of numbers instead of tags, and load them into spreadsheet software to make them look pretty and perform functions on them... but to say the spreadsheet program is "part of" those numbers would be foolish.

    4. Re:No, it hasn't. by Samantha+Wright · · Score: 2

      I want to live in your world. I don't like synecdoche or meronymy either. Unfortunately there are enough anecdotes against such precision in language from marketers and buzzword distributors that we're on the losing team. (Exhibit A: this book.)

      --
      Bio questions? Ask me to start a Q&A journal. Computer analogies available for most topics!
  4. Already... by sycodon · · Score: 3, Funny

    ...some recruiter has called be wanting to know if I have at least three years "in depth" experience with HTML 5

    --
    When Fascism comes to America, it will call itself Anti-Fascism, and tell you to give up your guns.
    1. Re:Already... by Desler · · Score: 4, Informative

      And? HTML5 has been in working draft for more than 3 years.

  5. Re:Google is one of the pioneers of HTML5 by omfgnosis · · Score: 2

    If they plan to renege on their announcement about H.264 in Chrome, it would seem that acquiring VP8 was an awful waste of money.

    It might be that they're trying to plan a successful transition rather than a pointlessly principled one. It's worked so well for Mozilla that they're about to renege on their principles.