Set up your courses
Pick the courses you're taking and this page shows only those. About 30 seconds.
Code, one block at a time.
Short lessons: predict first, try it in a model, then see why it works.
Start the first lessonNo sign-up. Your progress saves on this device, and you can keep it later with an email.
Know some web development already?
Answer about 10 questions and skip the units you know. New to it? Start with the first lesson below.
Elements and documents
Mark up text with elements, nest them correctly and draw the tree, add links, images and lists with working paths, write the document skeleton, and predict how the browser treats whitespace, reserved characters and broken markup.
Formulas: Elements and documentsMeaningful, accessible HTML
Choose elements for what content is, so screen-reader and keyboard users can use the page, with heading outlines, landmarks, buttons and links, alt text, link text, data tables and labeled forms the browser checks.
Selectors and the cascade
Write CSS rules and link a style sheet, select elements by type, class, id, position and state, predict which declaration wins from specificity and source order, say which properties inherit, and find why a style didn't apply.
Boxes, color and type
Name the layers of every box and compute its width, predict margins and center a block, tell block from inline, choose length units, judge text contrast, set readable type and keep content inside its box.
Flexbox
Lay out rows and columns with flexbox, spread and align items on both axes, wrap and space them, share out room with flex-grow, center anything, and keep visual order and source order the same.
Grid
Lay out rows and columns at once with CSS grid, size tracks with px, fr and repeat, place and span items by line numbers, draw a page with named areas, let the column count follow the screen width, and choose between grid and flexbox.
Responsive design
Make one page work from a phone to a wide monitor with the viewport line, fluid widths, media queries written mobile first, type sized with clamp(), images served at a fitting size, and styles that follow the reader's own settings.
JavaScript values and variables
Say exactly what a script prints with console.log, work out arithmetic and strings, declare with let and const, name types with typeof, predict what happens when strings and numbers mix, convert on purpose, and read an error message.
Decisions, loops and functions
Compare with ===, choose with if and else, use truthy values and defaults, repeat with while and for, and write functions and arrow functions that return values, knowing where each variable can be used.
Arrays and objects
Build and index arrays, loop over them, tell methods that change an array from ones that copy, transform with map and filter, sort and total, read and build objects, and keep shared and copied arrays apart.
The DOM and events
Find elements in the browser's tree of a page, change their text and classes, place scripts so they see the page, run code when people tap and type, build elements from data, and handle forms.
Data from the network
Read and write JSON, describe requests and responses with their status codes, predict the order of code that waits, read promises and async functions, and fetch data onto a page with loading, data and error states.