How it works

Ethan Marcotte coined the term in 2010 to describe three ingredients: fluid grids, fluid images and media queries. In practice, the page first declares a viewport meta tag with width=device-width; without it, phones render a shrunken desktop page. The layout then relies on relative units and on Flexbox or CSS Grid, which are responsive by default.

Media queries apply different rules at breakpoints, for example one column below 640 pixels, two up to 1,024 pixels and three above. Images ship in several sizes through the srcset attribute so a phone never downloads a photo sized for a 27-inch monitor.

Why it matters

Google uses the mobile version of a site's content, crawled with its smartphone agent, for indexing and ranking. Content that is missing or cut down on mobile is content Google does not count. Responsive design also removes the need to maintain a separate m-dot site, with its duplicate URLs and the risk of the two versions drifting apart.

Best practices

  • Design mobile first, then add layout for larger screens.
  • Make tap targets at least 24 × 24 CSS pixels, the WCAG 2.2 minimum, and closer to 44 pixels for primary buttons.
  • Use at least 16-pixel text in form fields, or Safari on iPhone zooms in when users start typing.
  • Make phone numbers tappable with a tel: link.
  • Test on real devices, not only by resizing a desktop browser window.

Common mistakes

Hiding entire sections on mobile to "simplify", which also hides them from Google. Letting a pricing table overflow sideways. Showing a pop-up that covers the whole phone screen. Serving the same 3 MB hero image to every device, which wrecks load time on a cellular connection and fails Largest Contentful Paint.