Responsive Web Design
Also known as: RWD, Responsive design
Approach to web design in which page layouts adapt fluidly to the screen size and capabilities of each device, from phones to desktop monitors.
Responsive web design builds a single website that adjusts its layout to whatever screen displays it. On a wide desktop monitor a page might show three columns side by side, on a tablet two and on a phone a single column with a collapsible menu and larger touch targets. Rather than maintaining separate mobile and desktop sites, a responsive site uses one set of HTML whose presentation, controlled by CSS, changes according to the width of the viewport and other characteristics such as orientation and resolution.
Ethan Marcotte coined the term in a 2010 article in the web design magazine A List Apart, describing three ingredients: fluid grids sized in proportions rather than fixed pixels, flexible images that scale within their containers and CSS media queries, standardized by the W3C, which apply different style rules at different screen widths. The rapid growth of smartphone browsing after the iPhone's 2007 launch made the approach necessary, and it became standard practice. Later CSS features, including Flexbox, Grid and container queries, made adaptable layouts easier to build, and many teams adopted mobile-first design, starting from the smallest screens.
Responsive design matters because a large share of web traffic comes from mobile devices, and for many people a phone is the only way to get online, often through inexpensive handsets and limited data plans, an aspect of the digital divide. Search engines also take mobile usability into account. Responsive layouts overlap strongly with web accessibility, since content that reflows when users zoom in helps people with low vision. Common pitfalls include hiding important content on small screens and sending desktop-sized images to phones, which wastes bandwidth and slows loading.
Key points
- Responsive design uses one codebase whose layout adapts to each device's screen size and capabilities.
- Ethan Marcotte coined the term in 2010, combining fluid grids, flexible images and CSS media queries.
- Mobile-first design starts from the smallest screens and adds complexity for larger ones.
- Layouts that reflow on zoom also help people with low vision and those on limited connections.
Related entries
CSS
Style sheet language that controls the layout, colors, typography and visual presentation of HTML documents on the web.
HTML
Markup language used to structure content on the World Wide Web, describing headings, paragraphs, links, images and interactive elements.
Web Accessibility
Practice of designing and building websites and apps so that people with disabilities can perceive, understand and operate them fully.
Digital Divide
Gap between people and communities who have effective access to digital technologies and the skills to use them and those who do not.
Single-Page Application
Web application that loads a single HTML page and then updates its content with JavaScript instead of loading fresh pages from the server.
World Wide Web Consortium
International standards organization that develops open technical standards and guidelines for the World Wide Web, including CSS and accessibility guidelines.
MDN Web Docs
Free documentation resource maintained by Mozilla and contributors that covers HTML, CSS, JavaScript and web APIs for developers.