Harness the latest capabilities of HTML5 and CSS to create a single UI that works flawlessly on mobile phones, tablets, and desktops — plus everything in-between – now with color images! Purchase of the print or Kindle book includes a free eBook in PDF format.

Key Features

  • Understand what responsive web design is and its significance for modern web development
  • Explore the latest developments in responsive web design and CSS, including layout with Grid and Subgrid, CSS Cascade Layers, Wide Gamut colors, and CSS Functions
  • Get to grips with the uses and benefits of new HTML elements and attributes

Book Description

Responsive Web Design with HTML5 and CSS, Fourth Edition, is a fully revamped and extended version of one of the most comprehensive and bestselling books on the latest HTML5 and CSS techniques for responsive web design. It emphasizes pragmatic application, teaching you the approaches needed to build most real-life websites, with downloadable examples in every chapter.

Written in the author's friendly and easy-to-follow style, this edition covers all the newest developments and improvements in responsive web design, including approaches for better accessibility, variable fonts and font loading, and the latest color manipulation tools making their way to browsers. You can enjoy coverage of bleeding-edge features such as CSS layers, container queries, nesting, and subgrid.

The book concludes by exploring some exclusive tips and approaches for front-end development from the author.

By the end of the book, you will not only have a comprehensive understanding of responsive web design and what is possible with the latest HTML5 and CSS, but also the knowledge of how to best implement each technique. Read through as a complete guide or dip in as a reference for each topic-focused chapter.

What you will learn

  • Use media queries, including detection for touch/mouse and color preference
  • Learn HTML semantics and author accessible markup
  • Facilitate different images depending on screen size or resolution
  • Write the latest color functions, mix colors, and choose the most accessible ones
  • Use SVGs in designs to provide resolution-independent images
  • Create and use CSS custom properties, making use of new CSS functions including ‘clamp’, ‘min’, and ‘max’
  • Add validation and interface elements to HTML forms
  • Enhance interface elements with filters, shadows, and animations

Who this book is for

Are you a full-stack or back-end developer who needs to improve their front-end skills? Perhaps you work on the front-end and you need a definitive overview of all modern HTML and CSS has to offer? Maybe you have done a little website building but you need a deep understanding of responsive web designs and how to achieve them? This is the book for you! All you need to take advantage of this book is a working understanding of HTML and CSS. No JavaScript knowledge is needed.

Table of Contents

  1. Preface
  2. Section I: The Fundamentals of Responsive Web Design
  3. The Essentials of Responsive Web Design
  4. Writing HTML Markup
  5. Media Queries and Container Queries
  6. Fluid Layout and Flexbox
  7. Layout with CSS Grid
  8. Section II: Core Skills for Effective Front-End Web Development
  9. CSS Selectors, Typography, and More
  10. CSS Color
  11. Stunning Aesthetics with CSS
  12. Responsive Images
  13. SVG
  14. Transitions, Transformations, and Animations
  15. Custom Properties and CSS Functions
  16. Forms
  17. Section III: Latest Platform Features and Parting Advice
  18. Cutting-Edge CSS Features
  19. Bonus Techniques and Parting Advice
  20. Other Books You May Enjoy
  21. Index