Skip to the content
Start free

Responsive web design

Responsive web design is a way of building web pages so that one set of 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 recommends it as the easiest mobile setup to build and maintain.

What is responsive web design? #

MDN’s guide to 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) or serving different HTML by user agent. Both mean 2 versions to keep in step.

Google indexes the phone version of your site. Its guide to 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. A responsive page gets that for free, because there is only 1 page. See mobile-first indexing and mobile SEO.

Why does it matter for AI answers? #

AI crawlers and live fetchers 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 per page also means links, mentions and citations all point to the same address, rather than being split between www and m. versions.

How does it work? #

1. The viewport tag #

Phones pretend to be wide screens unless told otherwise. web.dev’s responsive 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 #

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.

3. Media queries #

MDN’s page on using media queries 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 #

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? #

The W3C’s WCAG 2.2 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) 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.

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.
  • Menus that only open on hover, which touch screens cannot do. See website navigation.
  • Tiny tap targets packed close together.

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 and product markup are the same at every width. Only the CSS changes. Googlebot and AI crawlers read the full grid, and the page keeps 1 address for every link.

How to check it #

  1. Look for the viewport tag and other head tags with our Meta Tag Checker.
  2. Phone speed: our Page Speed Checker is coming soon, as is the Core Web Vitals Checker. The free Core Web Vitals Calculator explains your scores.
  3. Shrink big images with the Image Resizer and Image Compressor.
  4. Test colours for readability on small screens with the Colour Contrast Checker.
  5. Check that AI tools see the same content as people: our AI Readiness Checker.
  6. Run 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 and Countries and devices (Pro) show how phone visitors fare.

Questions #

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? #

No. A fast responsive page does the job. See AMP for the history.

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? #

The smallest. Then add room as the screen grows.

Sources #

Updated 24 November 2026 by URSY.

Cite this page: Responsive web design. URSY. Updated 24 November 2026. https://ursy.com/wiki/responsive-web-design/ · Section links

Tools for this

All 871 wiki entries, A to Z →