Hands-on with HTML APIs

The advent of HTML Living Standard, previously known as HTML5, has revolutionized the traditional web scene (and sense). In this book, I will simply call it HTML. In particular, HTML mandatory support for incorporating the ever-increasing number of APIs into browsers has enable web pages to function more and more like desktop applications. This empowerment has brought about new possibilities and opportunities for the next generation of web applications that are more autonomous and can work offline, on multi-platforms, free of third party plug-ins and less reliant on server-side scripting. In the foreseeable future, it is not unimaginable that the web browser will replace our traditional metaphor of desktops on our computers, that of a web-based desktop.

Wow, the future of web landscape looks excitingly promising. However, reaching this stage is not without its challenges. For one thing, the supports of the current browsers must be improved and streamlined. For another, the awareness and education on HTML APIs among the web communities must be stepped up. Some would have argued about “the chicken or the egg” causality dilemma. I would argue that both can proceed in parallel.

Over the years, HTML specification has added a bag full of APIs that cover a wide spectrum of functionality and features that power the future web browsers and mobile devices. In this book, you will dip into the HTML APIs grab bag and draw out eight of them for discussion and exploration peppered with plenty of hands-on exercises —

  • Geolocation for finding and navigating your way on Earth;
  • Drag and Drop for dragging and dropping UI elements on HTML pages;
  • Server-Sent Events for delivering server push updates from servers;
  • Web Sockets for establishing full-duplex bi-directional communication between clients and servers;
  • Web Workers for spawning JavaScript on background threads;
  • Web Storage for inserting, updating, retrieving, and deletion of data in your browser;
  • File API for turning your browser into a web-based file explorer where you can read and save files on your computer’s local file system; and
  • Canvas for drawing and animating multimedia resources on HTML pages.

Apart from the the many learning exercises, you also get to create interesting web applications including live stock quotes, real-time web chat, a web-based file explorer, and a clever hack to save web data from your HTML page to your computer’s file system.

If you wish to receive a copy of the source code, please contact me via the email address inside the book with proof of purchase.

What are you waiting for? Get your hands on the paperback now!

Also available as eBooks @

Tagged with: , , , , , , , ,

Speak Your Mind