Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Responsive Web Design with HTML5 and CSS: Build future-proof responsive websites using the latest HTML5 and CSS techniques
Purchase options and add-ons
2025 Edition: Harness the power of HTML5 and CSS to create UIs that work flawlessly on mobile phones, tablets, desktops, and everything in-between. The bestseller, now with color images.
Key Features
- Understand what responsive web design is, and learn to design effective, accessible, and future-proof front-end applications
- Explore the newest CSS features like view transitions, scroll-driven animations, P3 colors, and CSS functions
- Learn brand-new time-saving additions to the HTML language, including dialogs and modals
Book Description
Responsive Web Design with HTML5 and CSS, Fifth Edition, is the very latest, up-to-date version of one of the bestselling books on HTML5 and CSS. It emphasizes pragmatic application, teaching the approaches needed to build websites and applications, with downloadable examples.
Written in Ben's friendly and easy-to-follow style, this title can be read as a complete guide, or used as a reference for each topic.
If you're a backend dev looking to understand the front of the web stack and its possibilities, or perhaps a frontend dev looking for a comprehensive resource on everything new in HTML and CSS to build the most efficient UIs, this is the book for you. Even if you are deferring your code writing to AI, this book gives you the requisite knowledge to understand the validity and efficiency of AI's output.
Among the many topics, we cover approaches for better accessibility, utilizing variable fonts, explainers on the latest color manipulation techniques and functions, in-depth coverage of bleeding-edge features such as scroll-driven animations, view transitions, CSS anchor positioning, CSS layers, container queries, nesting, and much more.
By the end, you'll not only have a thorough understanding of responsive web design and what's possible with the latest HTML5 and CSS, but also know how to best implement each technique.
What you will learn
- Leverage color functions to mix colors and convert between color spaces
- Use media and container queries to detect touch/mouse and color preference
- Leverage HTML semantics to author accessible markup
- Use SVGs to provide resolution-independent images and learn to efficiently display them
- Create animations as items enter and leave the viewport using just CSS
- Discover CSS custom properties and make use of new CSS functions
- Add validation and interface elements to HTML forms
- Check whether the frontend code produced by AI tools is effective for your goals
Who this book is for
Are you a full-stack or backend developer who needs to improve their front-end skills?
Perhaps you work on the frontend and need a definitive overview of all that 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?
Perhaps you are using AI tools to produce code and want to check the output?
If any of those scenarios sound familiar, 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
- The Essentials of Responsive Web Design
- Writing HTML Markup
- Media and Container Queries
- Fluid Layout and Flexbox
- Layout with CSS Grid
- CSS Nesting, Layers, Selectors, and More
- Typography on the Web
- CSS Color
- Stunning Aesthetics with CSS
- Responsive Images
- SVG
- Transitions, Transformations, and Animations
- Custom Properties and CSS Functions
- Forms
- Cutting-Edge CSS Features
- Bonus Techniques and Parting Advice
- ISBN-101837028230
- ISBN-13978-1837028238
- Edition5th ed.
- PublisherPackt Publishing
- Publication dateOctober 20, 2025
- LanguageEnglish
- Dimensions7.5 x 1.3 x 9.25 inches
- Print length580 pages
Frequently bought together

Customers who viewed this item also viewed
- HTML and CSS: Design and Build WebsitesPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Sep 19
- JavaScript from Beginner to Professional: Learn JavaScript quickly by building fun, interactive, and dynamic web apps, games, and pagesPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Sep 19
- HTML and CSS QuickStart Guide: The Simplified Beginners Guide to Developing a Strong Coding Foundation, Building Responsive Websites, and Mastering ... (Coding & Programming - QuickStart Guides)PaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Sep 19
- Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to ProgrammingPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Sep 19
- Web Design with HTML, CSS, JavaScript and jQuery SetPaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
- Responsive Web Design with HTML5 and CSS: Build future-proof responsive websites using the latest HTML5 and CSS techniquesPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Saturday, Sep 19
Customers also bought or read
- JavaScript from Beginner to Professional: Learn JavaScript quickly by building fun, interactive, and dynamic web apps, games, and pages
Paperback$28.99$28.99Delivery Sat, Sep 19 - Modern Full-Stack React Projects: Build, maintain, and deploy modern web apps using MongoDB, Express, React, and Node.js
Paperback$42.66$42.66FREE delivery Sat, Sep 19 - React Key Concepts: An in-depth guide to React's core features
Paperback$23.71$23.71Delivery Sat, Sep 19 - Full Stack Web Development: A Comprehensive, Hands-On Guide to Building Modern Websites and Applications (IBPA Gold Award Winner) (Rheinwerk Computing)
Paperback$44.80$44.80FREE delivery Sat, Sep 19 - HTML & CSS: The Comprehensive Guide to Excelling in HTML5 and CSS3 for Responsive Web Design, Dynamic Content, and Modern Layouts (Rheinwerk Computing)
Paperback$51.11$51.11FREE delivery Sat, Sep 19 - Learn React with TypeScript: A beginner's guide to building real-world, production-ready web apps with React 19 and TypeScript
Paperback$38.99$38.99FREE delivery Sat, Sep 19 - Learning Web Design: A Beginner's Guide to HTML, CSS, JavaScript, and Web Images
Paperback$60.75$60.75FREE delivery Sat, Sep 19 - Mastering Node.js Web Development: Go on a comprehensive journey from the fundamentals to advanced web development with Node.js
Paperback$47.49$47.49FREE delivery Sat, Sep 19 - Agentic Coding with Claude Code: The everyday developer's guide to agentic coding with Claude Code
Paperback$36.33$36.33FREE delivery Sat, Sep 19 - React and React Native: Build cross-platform JavaScript and TypeScript apps for the web, desktop, and mobile
Paperback$43.99$43.99FREE delivery Sat, Sep 19 - JavaScript: The Comprehensive Guide to Learning Professional JavaScript Programming (Rheinwerk Computing)
Paperback$47.65$47.65FREE delivery Sat, Sep 19 - Django 5 By Example: Build powerful and reliable Python web applications from scratch
Paperback$39.99$39.99FREE delivery Sat, Sep 19 - Learning Angular: A practical guide to building web applications with modern Angular
Paperback$38.49$38.49FREE delivery Sat, Sep 19 - Mastering CSS Grid: A comprehensive and practical guide to creating beautiful layouts with CSS Grid
Paperback$38.99$38.99FREE delivery Sat, Sep 19 - CSS: The Definitive Guide: Web Layout and Presentation
Paperback$59.30$59.30FREE delivery Sat, Sep 19 - PHP and MySQL: The Comprehensive Guide to Server-Side Web Development with PHP 8 – Build Dynamic Websites with Database Integration, Security, and More (Rheinwerk Computing)
Paperback$59.95$59.95FREE delivery Sat, Sep 19 - Python 3: The Comprehensive Guide to Hands-On Python Programming (Rheinwerk Computing)
Paperback$53.79$53.79FREE delivery Sat, Sep 19 - Learning PHP, MySQL & JavaScript: A Step-by-Step Guide to Creating Dynamic Websites
Paperback$41.33$41.33FREE delivery Sep 22 - 29 - Designing and Prototyping Interfaces with Figma: Build a modern UI/UX with auto layout, prototyping, and scalable components
Paperback$39.99$39.99FREE delivery Sat, Sep 19 - Python Machine Learning By Example: Unlock machine learning best practices with real-world use cases
Paperback$29.55$29.55Delivery Sat, Sep 19
From the Publisher
Build modern interfaces that look flawless across desktop, tablet, and mobile. Create fast, adaptive experiences users love on every screen.
Design inclusive web experiences that work for everyone. Learn how AI-powered tools can improve usability, navigation, and accessibility at scale.
Accelerate development with AI-assisted workflows and smarter coding tools. Build, optimize, and deploy modern applications faster with AI in your stack.
Easy-to-follow HTML and CSS code for each chapter that you can experiment with to your heart’s content, with exercises to test your knowledge.
Live on the bleeding edge of responsive web design with new content on CSS color, responsive images, CSS custom properties, CSS functions, and more.
To celebrate five editions of Responsive Web Design with HTML5 and CSS, this new edition comes with images in full color.
Editorial Reviews
About the Author
Ben Frain has been a web designer/developer since 1996. He is currently employed as a lead product designer at Bet365. Before the web, he worked as an underrated (and modest) TV actor and technology journalist, having graduated from Salford University with a degree in media and performance. He has written four equally underrated (his opinion) screenplays and still harbors an, admittedly fading, belief he might sell one. He likes to pretend he isn't a nerd but spends an inordinate amount of time building keyboards and talking about them, text editors, and the web on his blog and YouTube channel. Outside of geekery, he enjoys managing his youngest son's football team, if standing in a freezing wet field, while a team of 11-year-olds shout at you to shut up can be called enjoyment. He is also hoping that, one day soon, his eldest teenage son will emerge from his room to spend some time with him and his wife, rather than merely to ask whether there is anything to eat or to ask for money.
Product details
- Publisher : Packt Publishing
- Publication date : October 20, 2025
- Edition : 5th ed.
- Language : English
- Print length : 580 pages
- ISBN-10 : 1837028230
- ISBN-13 : 978-1837028238
- Item Weight : 2.15 pounds
- Dimensions : 7.5 x 1.3 x 9.25 inches
- Best Sellers Rank: #266,549 in Books (See Top 100 in Books)
- #75 in Web Design (Books)
- #198 in Web Development & Design Programming
- #339 in Programming Languages (Books)
- Customer Reviews:
About the author

Ben Frain has been a web designer/developer since 1996. He is currently employed as a UI-UX Technical Lead at bet365.
Before the web, he worked as an underrated (and modest) TV actor and technology journalist, having graduated from Salford University with a degree in Media and Performance. He has written four equally underrated (his opinion) screenplays and still harbors the (fading) belief he might sell one.
Outside of work, he enjoys simple pleasures. Playing indoor football while his body and wife still allow it, and wrestling with his two sons. He is embarrassed to admit a fascination with mechanical keyboards.























