Pro HTML5 Programming, Second Edition

Book description

HTML5 is here, and with it, web applications have acquired power, ease, scalability, and responsiveness like never before. With this book, developers will learn how to use the latest cutting-edge HTML5 web technology—available in the most recent versions of modern browsers—to build web applications with unparalleled functionality, speed, and responsiveness.

This new edition includes major revisions for WebSockets functionality, reflecting the new W3C specification. It also features new chapters covering the drag-and-drop API as well as SVG.

  • Explains how to create real-time HTML5 applications that tap the full potential of modern browsers

  • Provides practical, real-world examples of HTML5 features in action

  • Covers all the new HTML5 APIs to get you up-to-speed quickly with HTML5

  • Fully updated to include the latest revisions of the WebSocket API, and much more.

Table of contents

  1. Title
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. Foreword
  6. About the Authors
  7. About the Technical Reviewer
  8. Acknowledgments
  9. Introduction
    1. Who This Book Is For
    2. An Overview of This Book
    3. Example Code and Companion Web Site
    4. Contacting the Authors
  10. CHAPTER 1: Overview of HTML5
    1. The Story So Far—The History of HTML5
    2. The Myth of 2022 and Why It Doesn’t Matter
    3. Who Is Developing HTML5?
    4. A New Vision
    5. A Plugin–Free Paradigm
    6. What’s New in HTML5?
    7. Summary
  11. CHAPTER 2: Using the Canvas API
    1. Overview of HTML5 Canvas
    2. Using the HTML5 Canvas APIs
    3. Building an Application with HTML5 Canvas
    4. Summary
  12. CHAPTER 3: Scalable Vector Graphics
    1. Overview of SVG
    2. Building an Interactive Application with SVG
    3. Summary
  13. CHAPTER 4: Working with Audio and Video
    1. Overview of Audio and Video
    2. Using the Audio and Video API
    3. Summary
  14. CHAPTER 5: Using the Geolocation API
    1. About Location Information
    2. Browser Support for Geolocation
    3. Privacy
    4. Using the Geolocation API
    5. Building an Application with Geolocation
    6. Practical Extras
    7. Summary
  15. CHAPTER 6: Using the Communication APIs
    1. Cross Document Messaging
    2. XMLHttpRequest Level 2
    3. Practical Extras
    4. Summary
  16. CHAPTER 7: Using the WebSocket API
    1. Overview of WebSocket
    2. Writing a Simple Echo WebSocket Server
    3. Using the WebSocket API
    4. Building a WebSocket Application
    5. Summary
  17. CHAPTER 8: Using the Forms API
    1. Overview of HTML5 Forms
    2. Using the HTML5 Forms APIs
    3. Building an Application with HTML5 Forms
    4. Summary
  18. CHAPTER 9: Working with HTML5 Drag-and-Drop
    1. Web Drag-and-Drop: The Story So Far
    2. Overview of HTML5 Drag-and-Drop
    3. Building an Application with Drag-and-Drop
    4. Handling Drag-and-Drop for Files
    5. Practical Extras
    6. Summary
  19. CHAPTER 10: Using the Web Workers API
    1. Browser Support for Web Workers
    2. Using the Web Workers API
    3. Coding the Main Page
    4. Building an Application with Web Workers
    5. Summary
  20. CHAPTER 11: Using the Web Storage API
    1. Overview of Web Storage
    2. Browser Support for Web Storage
    3. Using the Web Storage API
    4. Building an Application with Web Storage
    5. The Future of Browser Database Storage
    6. Practical Extras
    7. Summary
  21. CHAPTER 12: Creating HTML5 Offline Web Applications
    1. Overview of HTML5 Offline Web Applications
    2. Using the HTML5 Application Cache API
    3. Building an Application with HTML5 Offline Web Applications
    4. Summary
  22. CHAPTER 13: The Future of HTML5
    1. Browser Support for HTML5
    2. HTML Evolves
    3. Summary
  23. Index

Product information

  • Title: Pro HTML5 Programming, Second Edition
  • Author(s):
  • Release date: November 2011
  • Publisher(s): Apress
  • ISBN: 9781430238645