Skip to main content
main-content

Über dieses Buch

HTML5 is here, and with it, web applications take on a power, ease, scalability, and responsiveness like never before. In 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.

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 Shows which HTML5 features are supported in current browsers Covers all the new HTML5 APIs to get you up to speed quickly with HTML5

Inhaltsverzeichnis

Frontmatter

Chapter 1. Overview of HTML5

Abstract
This book is about HTML5 Programming. Before you can understand HTML5 programming, however, you need to take a step back and understand what HTML5 is, a bit of the history behind it, and the differences between HTML4 and HTML5.
Peter Lubbers, Brian Albers, Frank Salim

Chapter 2. Using the HTML5 Canvas API

Abstract
In this chapter, we’ll explore what you can do with the HTML5 Canvas API—a cool API that enables you to dynamically generate and render graphics, charts, images, and animation. We’ll walk you through using the basics of the rendering API to create a drawing that can scale and adjust to the browser environment. We’ll show you how to create dynamic pictures based on user input in a heatmap display. Of course, we’ll also alert you to the pitfalls of using HTML5 Canvas and share tricks to overcome them.
Peter Lubbers, Brian Albers, Frank Salim

Chapter 3. Working with HTML5 Audio and Video

Abstract
In this chapter, we’ll explore what you can do with two important HTML5 elements—audio and video— and we’ll show you how they can be used to create compelling applications. The audio and video elements add new media options to HTML5 applications that allow you to use audio and video without plugins while providing a common, integrated, and scriptable API.
Peter Lubbers, Brian Albers, Frank Salim

Chapter 4. Using the HTML5 Geolocation API

Abstract
Let’s say you want to create a web application that offers discounts and special deals on running shoes in stores that your application’s users are within walking (or running) distance away from. Using the HTML5 Geolocation API, you can request users to share their location and, if they agree, you can provide them with instructions on how to get to a nearby store to pick up a new pair of shoes at a discounted rate.
Peter Lubbers, Brian Albers, Frank Salim

Chapter 5. Using the Communication APIs

Abstract
In this chapter, we’ll explore what you can do with two of the important building blocks for real-time, cross-origin communication: Cross Document Messaging and XMLHttpRequest Level 2 and we’ll show you how they can be used to create compelling applications. Both of these building blocks add new communication options to HTML5 applications and allow applications served from different domains to safely communicate with each other.
Peter Lubbers, Brian Albers, Frank Salim

Chapter 6. Using the HTML5 WebSocket API

Abstract
In this chapter, we’ll explore what you can do with the most powerful communication feature in the HTML5 specification: HTML5 WebSockets, which defines a full-duplex communication channel that operates through a single socket over the web. Websocket is not just another incremental enhancement to conventional HTTP communications; it represents a large advance, especially for real-time, eventdriven web applications.
Peter Lubbers, Brian Albers, Frank Salim

Chapter 7. Using the HTML5 Forms API

Abstract
In this chapter, we’ll explore all the new capabilities at your command with a longstanding technology: HTML Forms. Forms have been the backbone of the explosion of the Web since they first appeared. Without form controls, web business transactions, social discussions, and efficient searches would simply not be possible.
Peter Lubbers, Brian Albers, Frank Salim

Chapter 8. Using the HTML5 Web Workers API

Abstract
HTML5 Web Workers provide background processing capabilities to web applications and typically run on separate threads so that JavaScript applications using HTML5 Web Workers can take advantage of multicore CPUs. Separating long-running tasks into HTML5 Web Workers also avoids the dreaded slowscript warnings, shown in Figure 8-1, that display when JavaScript loops continue for several seconds.
Peter Lubbers, Brian Albers, Frank Salim

Chapter 9. Using the HTML5 Web Storage API

Abstract
In this chapter, we will explore what you can do with HTML5 Web Storage—sometimes referred to as DOMStorage—an API that makes it easy to persist data across web requests. Before the Web Storage API, remote web servers needed to store any data that persisted by sending it back and forth from client to server. With the advent of the Web Storage API, developers can now store data directly on the client side in the browser for repeated access across requests or to be retrieved long after you completely close the browser, thus reducing network traffic.
Peter Lubbers, Brian Albers, Frank Salim

Chapter 10. Creating HTML5 Offline Web Applications

Abstract
In this chapter, we will explore what you can do with offline HTML5 applications. HTML5 applications do not necessarily require constant access to the network, and loading cached resources can now be more flexibly controlled by developers.
Peter Lubbers, Brian Albers, Frank Salim

Chapter 11. The Future of HTML5

Abstract
As you have already seen in this book, HTML5 provides powerful programming features. We also discussed the history behind HTML5’s development and HTML5’s new plugin-free paradigm. In this chapter, we will look at where things are going. We will discuss some of the features that are not fully baked yet but hold tremendous promise.
Peter Lubbers, Brian Albers, Frank Salim

Backmatter

Weitere Informationen

Premium Partner

    Bildnachweise