Table of Contents for
Responsive Web Design with HTML5 and CSS3 Essentials

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition Responsive Web Design with HTML5 and CSS3 Essentials by Asoj Talesra Published by Packt Publishing, 2016
  1. Cover
  2. Table of Contents
  3. Responsive Web Design with HTML5 and CSS3 Essentials
  4. Responsive Web Design with HTML5 and CSS3 Essentials
  5. Credits
  6. About the Authors
  7. About the Reviewer
  8. www.PacktPub.com
  9. Preface
  10. What you need for this book
  11. Who this book is for
  12. Conventions
  13. Reader feedback
  14. Customer support
  15. 1. Introducing Responsive Web Design
  16. Exploring how RWD works
  17. Understanding the elements of RWD
  18. Appreciating the importance of RWD
  19. Comparing RWD to adaptive design
  20. Preparing our development environment
  21. Considering a suitable strategy
  22. Exploring best practices
  23. Setting up a development workflow
  24. Exploring mistakes
  25. Summary
  26. 2. Creating Fluid Layouts
  27. Understanding the different layout types
  28. Setting the available viewport for use
  29. Exploring the benefits of flexible grid layouts
  30. Understanding the mechanics of grid layouts
  31. Implementing a prebuilt grid layout
  32. Exploring the use of flexbox
  33. Visiting the future
  34. Taking it further
  35. Summary
  36. 3. Adding Responsive Media
  37. Making video responsive
  38. Making text fit on screen
  39. Summary
  40. 4. Exploring Media Queries
  41. Understanding media queries
  42. Identifying common breakpoints
  43. Putting our theory into practice
  44. Creating some practical examples
  45. Examining some common mistakes
  46. Exploring best practices
  47. Taking things further
  48. Summary
  49. 5. Testing and Optimizing for Performance
  50. Understanding why pages load slowly
  51. Optimizing the performance
  52. Testing the performance of our site
  53. Best practices
  54. Providing support for older browsers
  55. Considering cross-browser compatibility
  56. Testing site compatibility
  57. Following best practices
  58. Summary

Summary

A key part of any website must be the media used; after all, it would become boring without some form of color! This is no different for responsive sites; throughout the course of this chapter, we've covered some useful techniques for adding responsive media, so let's reflect on what we've covered in this chapter.

We kicked off with a look at making images fluid, which is the basic concept behind responsive media; we then swiftly moved on to look at using the HTML5 <picture> element, to see how it can be used to specify different sized images based on hardware capabilities. We explored a few pointers on what is available to use, should we decide to that existing native support is insufficient, and we need to progress from using just plain HTML and CSS.

Next up came a look at responsive video; we examined how to make externally hosted videos responsive, with just plain CSS. We also covered the techniques required to make the HTML5 <video> element responsive, if hosting externally is not an option. We also explored the HTML5 <audio> element, and saw how we can use similar techniques to make it responsive.

We then rounded off the chapter with a look at making standard text responsive; we covered how this has already been used in many demos throughout the book, before exploring the different techniques, such as using em or rem values, which are often better than standard pixel units. We then finished with a quick demo on using viewport units for font sizes, so we could see how to get the best of everything when creating responsive text.

Phew—a lot covered! Let's move on. Now that we have our layout and content in place, we need to consider how to resize them correctly. Enter media queries—this will be the subject of our next chapter.