---
title: "Responsive web design"
description: "Responsive web design lets one page adapt to every screen with a viewport tag, fluid layouts and media queries. Google recommends it for mobile."
url: https://ursy.com/wiki/responsive-web-design/
updated: 2026-11-24T22:13:22+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/responsive-web-design/
---

# Responsive web design

> Responsive web design lets one page adapt to every screen with a viewport tag, fluid layouts and media queries. Google recommends it for mobile.

**Responsive web design is a way of building web pages so that one set of [HTML](https://ursy.com/wiki/html/) and CSS adapts its layout, images and text to any screen, from a small phone to a wide desktop monitor.** The page stays at one address and holds the same content; only the layout changes. [Google](https://ursy.com/wiki/google/) recommends it as the easiest mobile setup to build and maintain.

## What is responsive web design? {#what-is-responsive-web-design}

MDN’s guide to [responsive design](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/CSS_layout/Responsive_Design) says Ethan Marcotte coined the term in 2010, to describe using fluid grids, fluid images and media queries. Those 3 ideas still sit at the centre:

- **Fluid grids:**  columns sized in shares of the space, not fixed pixels. MDN notes that Flexbox and CSS Grid are responsive by default.
- **Fluid images:**  images that never grow wider than their box, using `max-width: 100%`.
- **Media queries:**  CSS rules that apply only when a condition is true, such as a minimum width.

The older options were a separate mobile site (often on an m. [subdomain](https://ursy.com/wiki/subdomain/)) or serving different HTML by [user agent](https://ursy.com/wiki/user-agent/). Both mean 2 versions to keep in step.

## Why does it matter for search? {#why-does-it-matter-for-search}

Google indexes the phone version of your site. Its guide to [mobile-first indexing](https://developers.google.com/search/docs/crawling-indexing/mobile/mobile-sites-mobile-first-indexing) explains that Google crawls with a smartphone agent and indexes and ranks the phone version of your content. It also says Google recommends responsive web design because it is the easiest pattern to implement and maintain. With a separate mobile site you must make sure it has the same content, the same structured data, and equivalent title and [meta description](https://ursy.com/wiki/meta-description/). A responsive page gets that for free, because there is only 1 page. See [mobile-first indexing](https://ursy.com/wiki/mobile-first-indexing/) and [mobile SEO](https://ursy.com/wiki/mobile-seo/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

[AI crawlers](https://ursy.com/wiki/ai-crawler/) and [live fetchers](https://ursy.com/wiki/live-fetcher/) read the HTML, not your layout. A responsive site serves them the same full content every visitor gets. Sites that hide text on phones, or cut it from a slimmer mobile template, can lose facts that an AI tool would otherwise quote. 1 [URL](https://ursy.com/wiki/url/) per page also means links, mentions and [citations](https://ursy.com/wiki/citation/) all point to the same address, rather than being split between www and m. versions.

## How does it work? {#how-does-it-work}

### 1. The viewport tag {#1-the-viewport-tag}

Phones pretend to be wide screens unless told otherwise. web.dev’s [responsive design basics](https://web.dev/articles/responsive-web-design-basics) says pages built for many devices must include a meta viewport tag in the head:

```
<meta name="viewport" content="width=device-width, initial-scale=1">
```

`width=device-width` matches the page to the screen width; `initial-scale=1` keeps the scale steady when the phone turns sideways.

### 2. Content that fits {#2-content-that-fits}

web.dev warns that making people scroll sideways or zoom out to see the page is a poor experience. It recommends `max-width: 100%` on images, and setting `width` and `height` so the browser can save space before they load. That last point helps [Cumulative Layout Shift](https://ursy.com/wiki/cumulative-layout-shift/).

### 3. Media queries {#3-media-queries}

MDN’s page on [using media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Using) shows 2 ways to write the same rule:

```
@media (width >= 600px) { /* 2 columns */ }
@media (min-width: 600px) { /* older form */ }
```

A common approach, MDN says, is “mobile first”: build a single column for narrow screens, then add columns when there is room.

### 4. Breakpoints from content {#4-breakpoints-from-content}

web.dev says not to set breakpoints by device class, product, brand or operating system. Let the content decide: widen the window until the line length or layout looks wrong, and add a breakpoint there.

## What does accessibility add? {#what-does-accessibility-add}

The W3C’s [WCAG 2.2](https://www.w3.org/TR/WCAG22/) rule 1.4.10 Reflow (Level AA) says content must work without scrolling in 2 directions at a width equal to 320 CSS pixels. Rule 1.4.4 asks that text can be resized up to 200 percent without losing content. The W3C’s note on [target size (minimum)](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html) sets tap targets at 24 by 24 CSS pixels or more, with some exceptions. A good responsive layout meets these as a matter of course. See [web accessibility](https://ursy.com/wiki/web-accessibility/).

## Common mistakes {#common-mistakes}

- **No viewport tag** , so the phone shows a shrunk desktop page.
- **Fixed-width boxes**  (a 1,200 px table or banner) that force sideways scrolling.
- **Hiding content on mobile**  with `display: none`. Google indexes the mobile view and asks that it carry the same content as the desktop one.
- **Breakpoints for 1 phone model**  that break on the next.
- **Huge images sent to small screens.**  Use `srcset` and `sizes`, and modern formats: see [WebP and AVIF](https://ursy.com/wiki/webp-and-avif/).
- **Menus that only open on hover** , which touch screens cannot do. See [website navigation](https://ursy.com/wiki/website-navigation/).
- **Tiny tap targets**  packed close together.

## A worked example {#a-worked-example}

A florist’s product grid shows 4 cards in a row on desktop.

| Screen width | Layout | Rule |
| --- | --- | --- |
| Under 600 px | 1 card per row, full-width photo, large “Add to basket” button | Base CSS, no query |
| 600 to 959 px | 2 cards per row | `@media (width >= 600px)` |
| 960 px and up | 4 cards per row, filters in a side column | `@media (width >= 960px)` |

The HTML, prices, [alt text](https://ursy.com/wiki/alt-text/) and product markup are the same at every width. Only the CSS changes. [Googlebot](https://ursy.com/wiki/googlebot/) and AI crawlers read the full grid, and the page keeps 1 address for every link.

## How to check it {#how-to-check-it}

1. Look for the viewport tag and other head tags with our [Meta Tag Checker](https://ursy.com/meta-tag-checker/).
2. Phone speed: our [Page Speed Checker](https://ursy.com/page-speed-checker/) is coming soon, as is the [Core Web Vitals Checker](https://ursy.com/core-web-vitals-checker/). The free [Core Web Vitals Calculator](https://ursy.com/webmaster-tools/core-web-vitals-calculator/) explains your scores.
3. Shrink big images with the [Image Resizer](https://ursy.com/webmaster-tools/image-resizer/) and [Image Compressor](https://ursy.com/webmaster-tools/image-compressor/).
4. Test colours for [readability](https://ursy.com/wiki/readability/) on small screens with the [Colour Contrast Checker](https://ursy.com/webmaster-tools/colour-contrast-checker/).
5. Check that AI tools see the same content as people: our [AI Readiness Checker](https://ursy.com/ai-readiness-checker/).
6. Run [Google Lighthouse](https://ursy.com/wiki/google-lighthouse/) in Chrome; web.dev notes its audits can check the viewport tag and flag overflowing content.
7. In URSY Pro, [Real user speed](https://ursy.com/pro/real-user-speed/) and [Countries and devices](https://ursy.com/pro/countries-and-devices/) (Pro) show how phone visitors fare.

## Questions {#questions}

### Is responsive design a ranking factor? {#is-responsive-design-a-ranking-factor}

Google does not say so. It recommends it because the mobile version is what Google indexes, and responsive design keeps that version complete.

### Is AMP needed? {#is-amp-needed}

No. A fast responsive page does the job. See [AMP](https://ursy.com/wiki/amp-accelerated-mobile-pages/) for the history.

### Responsive or adaptive? {#responsive-or-adaptive}

Adaptive design swaps fixed layouts at set sizes; responsive design flows between them. Responsive is simpler to keep up.

### What width should I design for first? {#what-width-should-i-design-for-first}

The smallest. Then add room as the screen grows.

## Related words {#related-words}

- [Mobile-first indexing](https://ursy.com/wiki/mobile-first-indexing/)
- [CSS](https://ursy.com/wiki/css/)
- [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/)
- [User experience](https://ursy.com/wiki/user-experience-ux/)
- [Above the fold](https://ursy.com/wiki/above-the-fold/)

## Sources {#sources}

- [web.dev: Responsive web design basics](https://web.dev/articles/responsive-web-design-basics), checked 24 November 2026
- [MDN: Responsive design](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/CSS_layout/Responsive_Design), checked 24 November 2026
- [MDN: Using media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Using), checked 24 November 2026
- [Google Search Central: Mobile site and mobile-first indexing best practices](https://developers.google.com/search/docs/crawling-indexing/mobile/mobile-sites-mobile-first-indexing), checked 24 November 2026
- [W3C: Web Content Accessibility Guidelines (WCAG) 2.2](https://www.w3.org/TR/WCAG22/), checked 24 November 2026
- [W3C WAI: Understanding target size (minimum)](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html), checked 24 November 2026

*Updated 24 November 2026 by URSY.*
