contents


preface
acknowledgments
about this book

Part 1 Learning HTML5

1 Introducing HTML5 markup
Why do we need new elements?
New elements for page structure
The HTML DOCTYPE
New elements for content
HTML5’s new global attributes
The HTML5 content model
Browser support
Summary
2 HTML5 forms
The limitations of HTML4 forms
Numbers, ranges, dates, and times
Validation
Email and URLs
Elements for user feedback
Less-common form controls
New attributes for the <input> element
Extending forms with JavaScript
Browser support and detecting HTML5 features
Summary
3 Dynamic graphics
Getting started with <canvas>: shapes, images, and text
Advanced <canvas>: gradients, shadows, and animation
Getting started with SVG
SVG vs. <canvas>
Browser support
Summary
4 Audio and video
Audio and video on the modern web
The <audio> element
The <video> element
Controlling audio and video with JavaScript
Integrating media with other content
Browser support
Summary
5 Browser-based APIs
Rich-text editing with the contenteditable attribute
Natural user interaction with drag-and-drop
Managing the Back button with the history API
Getting semantic with the microdata API
Lag-free interfaces with web workers
Browser support
Summary
6 Network and location APIs
Finding yourself with the Geolocation API
Communication in HTML5
Offline web applications
Storing data for offline use
Browser support
Summary

Part 2 Learning CSS3

7 New CSS language features
Choosing elements through their relationships
Choosing elements by their attributes
Choosing elements based on user interaction
Browser support
Summary
8 Layout with CSS3
Underused CSS2 layout features
CSS3 improvements to CSS2 approaches
Using media queries for flexible layout
The future of CSS layout
Browser support
Summary
9 Motion and color
Colors and opacity
CSS transforms
CSS transitions
CSS Animation
Browser support
Summary
10 Borders and backgrounds with CSS3
Drop shadows with CSS3
Easy rounded corners
New features for background images
Selective background scaling with border images
Creating gradients with CSS
Browser support
Summary
11 Text and fonts
Basic web fonts
Making your life easier with font services
Advanced web typography
Text columns
Wrapping and overflow
Browser support
Summary

Appendix A A history of web standards
Appendix B HTML basics
Appendix C CSS basics
Appendix D JavaScript

Index