Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title
Copyright
Dedication
Contents at a Glance
Contents
About the Author
About the Techincal reviewer
Acknowledgments
Introduction
Part I: HTML5 in Depth
Chapter 1: Welcome to HTML5
What Is HTML5?
A Brief History of HTML
Enter Hypertext
Enter Markup Languages
Hypertext Markup Language Is Born
The Browser Wars
Standards to the Rescue
The Continuing Evolution of HTML
The Formation of the WHATWG and the Creation of HTML5
HTML5 Features
New Tags
JavaScript APIs
Related Standards
Summary
Chapter 2: HTML5 Elements
Functionality, Semantics, and the Evolution of HTML
Sections
Grouping
Semantics
Audio and Video Content
Embedded Audio Content
Embedded Video Content
Specifying Multiple Sources
Interactive Elements
Dialogs
Progressive Disclosure
Forms
New Form Elements
New Form Element Attributes
New Input Types
Deprecated Elements and Obsolete Parameters
Summary
Chapter 3: HTML5 APIs
Server-sent Events
Client Setup
Sending Events from the Server
Origin Limitations
Security
An Example Application
WebSockets
Connecting to the Server: Inside the WebSocket Handshake
Receiving Information from the Server
Sending Information to the Server
Closing the Connection
An Example WebSocket Application
Cross Document Messaging/Web Messaging
Web Storage
Methods and Syntax
Privacy and Web Storage
Drag and Drop
The draggable Property
Drag-and-Drop Events
The dataTransfer Object
Drag-and-Drop API Examples
Web Workers
Creating Web Workers
Inside a Web Worker
A Simple Example of a Web Worker
Common Use Cases
Summary
Chapter 4: Canvas
The Canvas Drawing Mode
The Canvas Drawing Context
Basic Drawing Commands
Gradients and Patterns
Gradients
Patterns
Images
SavingCanvas Contents
Text
Shadows
Saving Drawing State
Compositing
Clipping
Transformations
Animation
Interaction
Summary
Chapter 5: Related Standards
Geolocation
Privacy Considerations
Geolocation API
Animation Timing
Selectors
Device Orientation
The compassneedscalibration Event
The deviceorientation Event
The devicemotion Event
WebGL
SVG
Summary
Chapter 6: Practical HTML5
Browser Support
A Crash Course in Feature Detection
Building a Feature Detection Script
Working with Broken or Missing HTML5 Implementations
Example Project: MobiDex, a Mobile Dexterity Puzzle
The Playing Field UI
Generating Obstacles and Targets
Summary
Part II: HTML5 Reference
Chapter 7: HTML5 Element Reference
Sections
The article Element
The aside Element
The footer Element
The header Element
The nav Element
The section Element
Grouping
The figure and figcaption Elements
The main Element
Semantics
The bdi Element
The data Element
The mark Element
The ruby, rp, and rt Elements
The time Element
The wbr Element
Audio and Video Content
The audio Element
The source Element
The track Element
The video Element
Interactive Elements
The details and summary Elements
Form Elements
The datalist Element
The meter Element
The output Element
The progress Element
Chapter 8: HTML5 API Reference
Server-sent Events
WebSockets
Cross-Document Messaging/Web Messaging
Web Storage
Drag and Drop
Specifying Draggable Elements: The draggable Property
Handling the Interactions: Drag-and-Drop Events
Specifying Drop Targets
The dataTransfer Object
Web Workers
Chapter 9: Canvas Reference
The canvas Element
The Drawing Context
Defining Paths
Basic Drawing Commands
Stroking and Filling Paths
Drawing Rectangles
Gradients and Patterns
Images
Text
Shadows
Compositing
Clipping
Transformations
Saving and Restoring Canvas State
Appendix A: JavaScript Tips and Techniques
Code Formatting
JavaScript Rewards Verbosity
Comment Annotations
Using Objects as Event Handlers
Promises
Chaining Promises
Returning Values from Promises
Browser Support for Promises
Further Reading
Index
← Prev
Back
Next →
← Prev
Back
Next →