HTML5 Pocket Primer |
Author: Oswald Campesato A pocket primer for HTML5 - oh no not more boring summaries of semantic tags - but this one is very good. Most HTML5 book are light on content and what content they do have tends to be spread over far too many pages. This particular book doesn't fit in your pocket, but it is small enough not to be intimidating. The question is does it contain more information than the average? The first thing to say is that the layout makes the book look difficult to read - but it's worth the effort. The first chapter gives a history of HTML5 and describes which technologies are part of it and which are on the edges of the specification. From here we have a look at Modernizer and the Caniuse website - which for some reason is rarely mentioned in HTML guides. By page 15 we have had a lightening treatment of the new tags and an example of how to use them. Custom data attributes are also described in a single paragraph. Too fast? If you think so you aren't going to like the rest of the book. For any programmer however this should be more than enough - why dwell on the obvious? But what does the reast of the book deal with? Chapter 2 takes on CSS3. Many HTML5 books make the choice that CSS3 is too big a topic and it really should be in another book. Here Oswald Campesato gives you a basic introduction to most aspects of CSS3 in 14 pages. You get to find out about basic CSS, shadow effects, rounded corners, gradients, 2D transformations and media queries. He doesn't cover animation and many of the "tricky" parts of CSS, but he does give you a basic idea of what CSS3 can do. Chapter 3 is a fairly detailed look at SVG graphics. It covers the basics of creating shapes and using transformations and filters. It even introduces SVG animation and considers the relationship between SVG and CSS. A tiny paragraph at the end also demonstrates how to use JavaScript in SVG. Next we have a look at Canvas which usually comes before SVG as it gets much more hype. Again you have a crash course on most of the Canvas API. The next chapter summarizes the basics of media support, audio and video and unusually the Battery API and the Vibration API. Next we move on to storage - web storage, indexeddb and working with geolocation. At the end it considers the idea of an off-line application but doesn't go into any detail about the problems of working with Chrome and/or Firefox implementations of the idea. You could argue that as none of this is part of the HTML5 specification it is off topic - but it is a real concern at the moment.
As the book progresses it become less focused on pure HTML5 topics. Chapter 7 is about server communication - CORS,Websockets, ServerSide Events SSE, SPD and Web Intents . By Chapter 8 the need to deal with a collection of small APIs results in a miscellany of topics - microdata, drag and drop, file API, History API, WebGL. jQuery and other libraries feature in this chapter in an effort to make things seem simpler. The book closes with a chapter on writing mobile apps for Android and iOS and a very quick introduction to jQuery - nothing to do with HTML5 but important topics. The chapter first introduces the idea of Android hypbrid development which basically works by changing the a native Android app project to host a WebView and then writing the UI etc using HTML5 and JavaScript. It chapter ends with a look at using Cordova/PhoneGap to build Android and iOS apps. There is a DVD bound into the back of the book that contains some video tutorials, the source code from the book and some extras. Why a DVD and not a website. I'm not sure. Overall this is a neat introduction to many HTML5 technologies. None of the introductions are "in depth" and you aren't going to find the book particularly useful once you graduate from beginner in any of the categories. However, HTML5 has so many APIs that there is probably always going to be one that you need to brush up on. The book also doesn't do anything about covering the technologies that are being invented each day to make ChromeOS and Firefox OS work. This isn't unreasonable as they are a long way from being standards as yet. This is not a really great book but it does at least manage to deal with fairly obvious things quickly and lingers only on slightly more difficult topics. It also fails to organize its material in a way that is convincing - putting location in with database, for example, and the battery API in with media. Yes it sort of makes sense but... While this book isn't going to be of much use to the complete beginner or the non-programmer, it could certainly help web developers find out about the vague package of technologies that we tend to call HTML5.
|
|||
Last Updated ( Thursday, 05 January 2017 ) |