WebsitesModule 4: Quality and inclusionLesson 10 of 15
Course progress60%

12 min lesson · Updated August 2026

How do websites work across phones and computers?

A responsive website adapts content and layout to available space and device capabilities while preserving meaning, task access and usability instead of maintaining separate “desktop” and “mobile” truths.

What you will learn

By the end, you will understand:

  • Explain responsive layout and viewport concepts
  • Design for touch, keyboards and changing orientations
  • Test content and actions across a range rather than two devices

Visual explainer

See the idea clearly.

Responsive design is continuous

Layouts use flexible sizing, media/container queries and adaptable assets to respond to available space. Breakpoints should occur where content needs them, not only at famous device widths.

The same URL and core content simplify sharing and maintenance, though components may change presentation.

Mobile changes context and input

FactorNeed
SpacePrioritize hierarchy and let content reflow without clipping.
TouchAdequate targets, spacing and no hover-only actions.
KeyboardFields remain visible when the on-screen keyboard opens.
OrientationAvoid locking orientation unless essential.
Network/deviceControl asset and script cost.
EnvironmentReadable contrast, simple actions and recoverable interruptions.

Content order must remain meaningful

CSS can visually rearrange content, but keyboard and screen-reader order usually follows the document. Large mismatches create confusion.

Start with logical HTML order and adapt layout around it. Do not hide essential content from mobile simply to make the page shorter.

Responsive audit checklist

  • Viewport configured
  • No page overflow
  • Text reflows/zooms
  • Images scale/crop safely
  • Navigation operable
  • Targets spaced
  • Focus not obscured
  • Forms visible above keyboard
  • Tables/diagrams adapt
  • Media controls usable
  • Safe-area/dock clearance
  • Landscape checked

Test ranges and real tasks

  1. 01

    Resize continuously

  2. 02

    Check 360/390/768/1024/wide

  3. 03

    Use real mobile browsers

  4. 04

    Rotate where relevant

  5. 05

    Zoom text/page

  6. 06

    Open keyboard

  7. 07

    Run priority task

  8. 08

    Throttle network

  9. 09

    Check reduced motion

Real-world example

Example: desktop comparison becomes mobile steps

Example

A three-column pricing comparison cannot simply shrink. On mobile it becomes clearly labelled stacked options with the same facts, while a comparison summary remains available. Keyboard focus follows reading order.

Try this

Run a responsive sweep

Open one page at a narrow width and slowly widen it. Record the first point where content clips, labels wrap badly, focus is hidden, images lose meaning or actions become difficult.

Common questions

Questions beginners ask.

What is responsive web design?

An approach where content and layout adapt to available space and device capabilities.

Is responsive the same as mobile-friendly?

Responsive design is one important way to support mobile, but real usability, performance and input testing still matter.

What is a breakpoint?

A condition where layout rules change because the content needs a different arrangement.

Should mobile have less content?

It may prioritize presentation, but do not remove essential facts or functions solely because the screen is small.

What is viewport overflow?

Content extends wider than the visible page, causing unwanted horizontal scrolling or clipping.

How large should touch targets be?

Follow applicable accessibility guidance and leave enough size/spacing for reliable touch; WCAG 2.2 includes a 24 CSS pixel minimum criterion with exceptions.

Do I need every physical device?

Use responsive tools plus representative real devices/browsers; no lab covers every environment.

Why test the on-screen keyboard?

It changes the visible viewport and can cover fields, errors or buttons.

Assessment

Check what you understood.

5 questions · instant explanations

1. What should drive breakpoints?
2. Why keep document order logical?
3. What should mobile testing include?
4. What is unwanted horizontal overflow?
5. True or false: hiding essential content is the preferred way to make mobile pages shorter.

Sources

Primary references.