7
Support Multiple Viewports Using Responsive Web Layouts
Introduction
Building web pages is a challenge. Not only do you need to craft these pages with HTML, CSS, and JavaScript to perform the tasks you set out, but you also need to ensure they are accessible to most users. Additionally, you need to ensure the pages render nicely regardless of whether the device is a PC, tablet, or mobile device, which means you need to consider aspects like screen size; the orientation of the device; that is, landscape or portrait; and pixel density.
There are many different techniques to ensure your web pages look good on many devices, but it all starts with having a strategy, a vision for what the experience will be for the user depending on what device ...
Get AI-Assisted Programming for Web and Machine Learning now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.