Chapter practice task
Task: Build and launch your responsive landing page
- Plan the sections: header, hero, services, about, pricing, contact, footer.
- Write the HTML first, with semantic tags and no styles.
- Add your variables, base styles and layout, mobile-first.
- Fix any “not working” rules using DevTools and specificity.
- Test on a phone, run Lighthouse and publish the page.
By the end of this chapter
- You can work out why a CSS rule is being overridden
- You can debug layouts in DevTools quickly
- You have a finished, responsive landing page for your portfolio
Quick answers for this chapter
Is !important bad?
Not always, but it should be a last resort. Fix specificity first.
What’s the fastest way to debug CSS?
Right-click → Inspect, and look for crossed-out rules in the Styles panel.
Can I reuse the landing page for clients?
Yes. It’s a great starting template for small business sites.