Pro HTML5 Programming [electronic resource] : Powerful APIs for Richer Internet Application Development /
Lubbers, Peter.author.
Salim, Frank.author.
Albers, Brian.author.
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.
Title Page; Copyright Page; Contents at a Glance; Table of Contents; Foreword; About the Authors; About the Technical Reviewer; Acknowledgments; Introduction; Who This Book Is For; An Overview of This Book; Example Code and Companion Web Site; Contacting the Authors; CHAPTER 1  Overview of HTML5; The Story So Far-The History of HTML5; The Myth of 2022 and Why It Doesn't Matter; Who Is Developing HTML5?; A New Vision; Compatibility and Paving the Cow Paths; Utility and the Priority of Constituencies; Interoperability Simplification; Universal Access; A Plugin-Free Paradigm
What's In and What's Out?What's New in HTML5?; New DOCTYPE and Character Set; New and Deprecated Elements; Semantic Markup; Simplifying Selection Using the Selectors API; JavaScript Logging and Debugging; window.JSON; DOM Level 3; Monkeys, Squirrelfish, and Other Speedy Oddities; Summary; CHAPTER 2 Using the Canvas API; Overview of HTML5 Canvas; History; What Is a Canvas?; Canvas Coordinates; When Not to Use Canvas; Fallback Content; CSS and Canvas; Browser Support for HTML5 Canvas; Using the HTML5 Canvas APIs; Checking for Browser Support; Adding a Canvas to a Page
Applying Transformations to DrawingsWorking with Paths; Working with Stroke Styles; Working with Fill Styles; Filling Rectangular Content; Drawing Curves; Inserting Images into a Canvas; Using Gradients; Using Background Patterns; Scaling Canvas Objects; Using Canvas Transforms; Using Canvas Text; Applying Shadows; Working with Pixel Data; Implementing Canvas Security; Building an Application with HTML5 Canvas; Practical Extra: Full Page Glass Pane; Practical Extra: Timing Your Canvas Animation; Summary; CHAPTER 3 Working with Scalable Vector Graphics; Overview of SVG; History
Understanding SVGScalable Graphics; Creating 2D Graphics with SVG; Adding SVG to a Page; Simple Shapes; Transforming SVG Elements; Reusing Content; Patterns and Gradients; SVG Paths; Using SVG Text; Putting the Scene Together; Building an Interactive Application with SVG; Adding Trees; Adding the updateTrees Function; Adding the removeTree Function; Adding the CSS Styles; The Final Code; Summary; CHAPTER 4 Working with Audio and Video; Overview of Audio and Video; Video Containers; Audio and Video Codecs; Audio and Video Restrictions; Browser Support for Audio and Video
Using the Audio and Video APIChecking for Browser Support; Accessibility; Understanding Media Elements; Working with Audio; Working with Video; Practical Extras; Summary; CHAPTER 5 Using the Geolocation API; About Location Information; Latitude and Longitude Coordinates; Where Does Location Information Come From?; IP Address Geolocation Data; GPS Geolocation Data; Wi-Fi Geolocation Data; Cell Phone Geolocation Data; User-Defined Geolocation Data; Browser Support for Geolocation; Privacy; Triggering the Privacy Protection Mechanism; Dealing with Location Information; Using the Geolocation API
Checking for Browser Support
Includes index.
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.
Computer programming.
Software engineering.
Web Development.
Software Engineering/Programming and Operating Systems.