HTML from scratch to a page
Structure, semantics, forms, media, and basic accessibility up to a complete page.
Hands-on learning
CSS4HTML is a unified hub: edit code in the playground, copy ready-made patterns, and follow clear trails — from HTML to React and Web Components, through CSS and JavaScript.
Pick where to start — or combine all five.
Structure, semantics, forms, media, and basic accessibility up to a complete page.
From the cascade to responsive layout, fluid type, and CSS accessibility.
Variables, functions, events, arrays, and a first look at fetch and the DOM.
Components, hooks, React Query, and Zustand — with a TSX playground.
Framework-agnostic Custom Elements, Shadow DOM, package with Vite, consume in React or Vue.
Several paths, one goal: understand the web in practice.
Open, edit, and see the result instantly.
Element, class, descendant, and pseudo-class selectors.
Content, padding, border, and margin — the CSS box model.
Align horizontally and vertically with a few flex utilities.
Automatic responsive grid with repeat and minmax.
Font size that scales between min and max without breakpoints.
Simple @keyframes for smooth element entrance.
Short patterns to paste and adapt.
Listen for clicks the idiomatic way.
Line that grows with transform — light and accessible.
Open Shadow DOM and inject markup + CSS.
Native modal with showModal().
Project light DOM into the shadow with <slot>.
queryKey + queryFn.
How JavaScript and CSS talk via classList — without inline styles.
Visible focus, contrast, motion, and forms — what CSS solves (and what it doesn’t).
Why order matters — and how the CSS4HTML hub reflects that in its trails.