Learn the Web
By Writing It
Guided labs for HTML, CSS, and JavaScript. Type code, see the result, and let the lab check your work against a short list of requirements. Each lab opens with small steps and ends with a challenge or a finished page.
Choose a lab
HTML Lab
Document structure, headings, links and lists, images, tables, forms, semantic elements, and accessibility basics.
8 stepsCSS Lab
Selectors, colors and fonts, the box model, display and position, flexbox, grid, pseudo-classes, and a responsive layout.
10 stepsJavaScript Lab
console.log, variables, strings, conditionals, loops, functions, arrays, objects, map, filter, reduce, and a final challenge.
Free formPlayground
HTML, CSS, and JavaScript panes with a live preview and a console. No lessons. Build whatever you like.
How the labs keep your browser safe
The code you type runs in your own browser tab and nowhere else. The labs are built so that it cannot reach anything else.
- Your code runs in a sandboxed frame that has no access to this page, its cookies, or its storage.
- The frame has no network access. Images must be embedded, and links and forms do nothing.
- HTML and CSS previews cannot run scripts at all. JavaScript runs in a separate worker that is stopped after a time limit.
- Nothing you type is saved, uploaded, or shared. If you reload the page, the lab starts over.
Very large allocations can still slow your browser. If a page becomes slow, close the tab.