HTML & CSS Cheat Sheet
Semantic HTML, the box model, Flexbox, Grid, responsive design and modern CSS — the patterns you reach for on every page, on one sheet.
Projects to build
The fastest way to make this stick. Build one, then put it in your portfolio.
Personal landing page
A single semantic page about you: header, about, projects, contact form. No frameworks, mobile-first, one accent colour.
Pricing page
Three pricing cards of equal height that stack on phones and sit in a row on desktop, with a highlighted "popular" plan.
Dashboard layout
A holy-grail layout — header, sidebar, main, footer — built with CSS Grid named areas that reflows to one column on phones.
Image gallery
A responsive gallery with auto-fitting columns, a hover zoom, a lightbox using :target or a checkbox, and lazy-loaded images.
Component library page
A styled set of reusable components (buttons, cards, forms, alerts) with design tokens, dark mode via custom properties, and accessible focus states.
