Codelab: Full Responsive Page Layout
Build a complete multi-section responsive page with a hero, feature cards, testimonials, and footer — mobile-first.
Step 1 of 6
Set up your project
This is the most ambitious codelab in the module. You'll build a complete, multi-section responsive page from scratch — the kind of page a freelancer would deliver to a client or a startup would use as their homepage. By the end, you'll have a real, functional website that works beautifully on phones, tablets, and desktops.
The page has six sections:
- A responsive navigation bar (from the previous codelab, simplified)
- A full-screen hero section with fluid typography
- A features section with a responsive grid of cards
- A testimonials section with responsive images
- A call-to-action (CTA) banner
- A responsive footer with multi-column links
Open a terminal (Ctrl + Alt + T) and run:
- mkdir ~/responsive-page — Creates the project folder.
- cd ~/responsive-page — Moves into it.
- touch index.html style.css — Creates the HTML and CSS files.
- code . — Opens VS Code.
This codelab is longer than the previous ones because we're building a full page. Take it section by section — don't try to write everything at once. After each step, save and preview in the browser to see your progress.
Tip
Keep your browser open side by side with VS Code. Every time you save (Ctrl+S), switch to the browser and refresh (Ctrl+R). This rapid feedback loop is how professional developers work — you should be refreshing your browser dozens of times per session.
HTMLREAD ONLY
PREVIEW