The latest official version is 4.01 which dates 24 December 1999. The specifications can be found at http://www.w3.org/TR/1999/REC-html401-19991224/ if you’re really interested.
HTML 5 is the long awaited follow-up of HTML 4 and XHTML 1.1. It`s been more than ten years ago since the last update in version 4.01 and technologies have evolved. The editor’s draft of HTML 5 can be found at http://dev.w3.org/html5/spec/
HTML 5 drops some out-dated elements and attributes while adding new ones and improving already present ones.
Example: Back in 1999 most people where browsing the web using a dialup connection. You would be happy if your download speed passed the 4 kb/sec mark. Now it`s “normal” that you download music and watch videos on the internet on sites like YouTube. Therefore new HTML tags like <audio> and <video> are introduced (since these were far from necessary in 1999). This way the problematic embed tag can be removed.
Enough tech talk, time for the review!
I have been offered the chance to review the book by Apress.
As I`ve mentioned before, this book is about HTML 5. It`s not about the basic elements already present but about the new ones and the APIs introduced along with it. In very short, this book is about the canvas, audio and video tags and the geolocation, communication, WebSocket, Forms, Web Workers, Web Storage and Offline Web Application APIs.
Apress also released another book, together with this book, which is all about the HTML 5 elements and CSS 3: Beginning HTML5 and CSS3: Next Generation Web Standards.
The book promises you will learn to develop web applications and sites using HTML 5 features and APIs and how to combine these (with other) web technologies.
The fourth chapter is about the Geolocation API. As the name might reveal is about the use of your location in and on websites. This function is very interesting for mobile phones, laptops and can be widely used in e-marketing. The chapter starts with how the location is determined including de pros and cons of each setting. Next is the implementation of the location API by showing your current location on a page. Following the previous part is a real life example, which uses the geolocation to calculate the travelled distance while being on the site. The last part of the chapter describes how to link the HTML 5 Geolocation API with Google Maps to show your current location on the map.
The next chapter (five) is about the communication APIs including XMLHttpRequest level 2 – the follow-up of the famous AJAX API. With these new API`s it’s possible to use cross-site scripts and build things like status updates, chat boxes and much more. The chapter ends with a cross site data uploading script.
The WebSocket API is explained in chapter six. With the WebSocket API it`s possible to replace the HTTP protocol with the WebSocket protocol to reduce traffic and latency and use a full-duplex connection. With the WebSocket protocol is also possible to SSL encrypt the connection, just like HTTPS. The chapter explains the basics of the WebSocket API, how to write your own WebSocket server in Python, where to download a ready-to-go WS server and how to implement it, including references to previous topics to merge everything into one script.
The Web Storage API is explained in chapter nine. The Web Storage API replaces cookies. With the new API the limitations of cookies are past. The API can also be used as a caching API so websites respond quicker. The chapter begins with setting and receiving a session storage item. Later on local storage is explained. As an example a distance away from finish is used. This uses content discussed in previous chapters to demonstrate a site which uses multiple techniques like web workers, the geolocation API and web workers.
At the end of the chapter the browser database storage “Web SQL” and JSON is explained.
The final chapter (eleven) is about the future of HTML 5. It contains information about WebGL, the audio data API, touchscreen support and peer-to-peer networking and it contains examples if possible.
What I did like about the book is the how clear every chapter is. Every chapter starts with an introduction, a bit about which current browsers support the codes in the chapter, a workaround to check if the user is able to use the code and every chapter ends with a summary.
The images are a necessary to show things without the need to reprogram a piece of code. Like most programming books, the codes which are used in the book are available as download on the publishers website.
The book promises you will learn to develop web applications using HTML 5 features and APIs and how to combine these (with other) web technologies. After reading this book I felt that I now have the skills necessary to develop websites which use the new HTML 5 APIs.
After reading this book I didn`t feel like there was stuff I don`t know. The only thing left for me to do is reading Beginning HTML5 and CSS3: Next Generation Web Standards – which came out at the same time as this book.
Why would you buy this book? The is no other book on the market right now which is as good as this one when it comes to the HTML 5 APIs. The book doesn`t explain HTML 4 content, as I hoped for.
Did I like the book? Yes, and I’m very happy to have this book. I’m very sure I am going to use this book a lot in the next few months.
Are there any things I would like to see improved in this book? Since HTML 5 is very experimental, I think a re-issue of this book could come out after a few years featuring some new things which are going to happen in that time spam.
More information can be found on the official Apress book link.
Pro HTML 5 Programming: Powerful APIs for Richer Internet Application Development
By Peter Lubbers, Brian Albers, Frank Salim
Published Sep 2010 by Apress