contents

foreword
preface
acknowledgments
about this book
about the cover illustration


Chapter 1 HTML5 and .NET
New toys for developers thanks to HTML5
HTML5 applications end-to-end
Hello World in HTML5
Summary
Chapter 2 A markup primer: classic HTML, semantic HTML, and CSS
Classic and semantic HTML markup: what’s the difference?
Basic structural elements of all HTML tags
Semantic HTML: The semantic blueprint
Styling HTML5: CSS basics
Summary
Chapter 3 Audio and video controls
Building a site to play audio and video
Audio and video tags
Controlling audio and video playback with JavaScript
Updating media types for open source content
Summary
Complete code listings
Chapter 4 Canvas
Canvas quick-start
Creating and manipulating shapes, lines, images, and text
Animating and adding special effects to canvas images
Summary
Complete code listing
Chapter 5 The History API: Changing the game for MVC sites
Building a History-ready MVC site
Using HTML5 History
Two more small steps ...
Summary
The complete JavaScript library
Chapter 6 Geolocation and web mapping
“Where am I?”: A (brief) geographic location primer
Building a geolocation application
Using the Geolocation API
Building a service to find address information
Summary
Complete code listings
Chapter 7 Web workers and drag and drop
Getting started: Building an app that integrates Drag and Drop and Web Workers
Implementing drag and drop in JavaScript
HTML5 Web Workers
Summary
The complete code listings
Chapter 8 Websockets
HTTP and TCP—a quick primer
Building a Websockets chat application
Using Node.js as a TCP server
Summary
The complete code listings
Chapter 9 Local storage and state management
A LocalStorage example application
Structuring a JavaScript library to maintain state
Using the LocalStorage API
Adding UI elements to complete the application
Other uses for LocalStorage
Summary
The complete code listings
Chapter 10 Offline web applications
Building an offline HTML5 application
The manifest file
Offline feature detection and event binding
The ApplicationCache object
Adding state management and displaying connected status
Building the server side of an offline application
Summary
The complete code listings


appendix A A JavaScript overview
appendix B Using ASP.NET MVC
appendix C Installing IIS Express 7.5

                             index