O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

HTML5 and CSS3, 2nd Edition

Book Description

HTML5 and CSS3 are more than just buzzwords--they're the foundation for today's web applications. This book gets you up to speed on the HTML5 elements and CSS3 features you can use right now in your current projects, with backwards compatible solutions that ensure that you don't leave users of older browsers behind. This new edition covers even more new features, including CSS animations, IndexedDB, and client-side validations.

Table of Contents

  1. HTML5 and CSS3, Second Edition
  2. For the Best Reading Experience...
  3. Table of Contents
  4. Early praise for HTML5 and CSS3, Second Edition
  5. Acknowledgments
  6. Preface
    1. HTML5: The Platform vs. The Specification
    2. What’s in This Book
    3. How to Read This Book
    4. What You Need
    5. A Note about JavaScript and jQuery Usage
    6. Online Resources
  7. Chapter 1: An Overview of HTML5 and CSS3
    1. A Stronger Platform for Web Development
    2. The Road to the Future Is Bumpy
  8. Part 1: Improving User Interfaces
  9. Chapter 2: New Structural Tags and Attributes
    1. Redefining a Blog Using Semantic Markup
    2. Showing Progress toward a Goal with the < meter > Element
    3. Creating Pop-Up Windows with Custom Data Attributes
    4. Defining an FAQ with a Description List
    5. The Future
  10. Chapter 3: Creating User-Friendly Web Forms
    1. Describing Data with New Input Fields
    2. Jumping to the First Field with Autofocus
    3. Providing Hints with Placeholder Text
    4. Validating User Input without JavaScript
    5. In-Place Editing with contenteditable
    6. The Future
  11. Chapter 4: Styling Content and Interfaces
    1. Styling Tables with Pseudoclasses
    2. Making Links Printable with :after and content
    3. Building Mobile Interfaces with Media Queries
    4. Creating Multicolumn Layouts
    5. The Future
  12. Chapter 5: Making Accessible Interfaces
    1. Providing Navigation Hints with ARIA Roles
    2. Creating an Accessible Updatable Region
    3. Improving Table Accessibility
    4. The Future
  13. Part 2: New Sights and Sounds
  14. Chapter 6: Drawing in the Browser
    1. Drawing a Logo on the Canvas
    2. Graphing Statistics with RGraph
    3. Creating Vector Graphics with SVG
    4. The Future
  15. Chapter 7: Embedding Audio and Video
    1. A Bit of History
    2. Containers and Codecs
    3. Working with Audio
    4. Embedding Video
    5. Making Videos Accessible
    6. The Future
  16. Chapter 8: Eye Candy
    1. Rounding Rough Edges
    2. Working with Shadows, Gradients, and Transformations
    3. Working with Fonts
    4. Making Things Move with Transitions and Animations
    5. The Future
  17. Part 3: Beyond Markup
  18. Chapter 9: Saving Data on the Client
    1. Saving Preferences with Web Storage
    2. Storing Data in a Client-Side Database Using IndexedDB
    3. Working Offline
    4. The Future
  19. Chapter 10: Creating Interactive Web Applications
    1. Preserving History
    2. Talking across Domains
    3. Chatting with Web Sockets
    4. Finding Yourself: Geolocation
    5. Getting It All Sorted Out with Drag and Drop
    6. The Future
  20. Chapter 11: Where to Go Next
    1. Defining Layouts with the Flexible Box Model
    2. Cross-Origin Resource Sharing
    3. Web Workers
    4. Server-Sent Events
    5. Filter Effects
    6. WebGL
    7. Onward!
  21. Appendix 1: Features Quick Reference
    1. New Elements
    2. Attributes
    3. Forms
    4. Form-Field Attributes
    5. Accessibility
    6. Multimedia
    7. CSS3
    8. Client-Side Storage
    9. Additional APIs
  22. Appendix 2: jQuery Primer
    1. Loading jQuery
    2. jQuery Basics
    3. Methods to Modify Content
    4. Creating and Removing Elements
    5. Events
    6. Document Ready
    7. Use jQuery Wisely
  23. Appendix 3: Encoding Audio and Video for the Web
    1. Encoding Audio
    2. Encoding Video
  24. Appendix 4: Resources
  25. Bibliography
    1. You May Be Interested In…