Learn HTML, CSS and JavaScript: 20 free interactive lessons
Short lessons where every step is real HTML, CSS and JavaScript running next to you: structure, style, flexbox, responsive layouts, the DOM, events, APIs and your first complete app.
Do it in the browser: a real HTML, CSS and JavaScript tool, a short mission and instant feedback. No install. Optional certificate at the end of the course.
Open the courseLessons
- Your first web pageA web page is a text file of HTML tags. Write two lines and watch the browser draw them.
- Links and listsThe "hyper" in HyperText: links connect pages, and lists organise items.
- Images and attributesPictures make pages come alive. `<img>` needs a source and, always, a text alternative.
- Page structureHeader, navigation, main content, footer: semantic tags describe the parts of a page.
- Selectors and coloursCSS picks elements with selectors and changes how they look: colour, font, size.
- The box modelEvery element is a box: content, padding, border and margin. Master the box and layouts get easy.
- FlexboxLine items up in a row or a column, centre them, spread them: flexbox does it in two lines.
- Responsive designOne page, every screen: grids, flexible units and media queries.
- Variables and the consoleStore values in variables and print them with console.log, the programmer’s flashlight.
- FunctionsPackage steps under a name, give them inputs and get a result back.
- Decisions and loops`if` picks a path, loops repeat work: the two moves behind every program.
- Arrays and objectsLists of things and things with properties: the shapes almost all data takes.
- Changing the pageThe DOM is the page as JavaScript sees it: a tree of elements you can find and change.
- Events: clicks and keysMake the page react: listen for clicks, keys and other events and run a function.
- Forms and inputRead what people type, check it and respond without reloading the page.
- Building elements from dataKeep data in an array and draw the page from it: the idea behind every modern framework.
- Fetching data from an API`fetch` asks a server for data over the network; the answer arrives later, as JSON.
- Saving in the browserlocalStorage keeps small data on the device, so the page remembers after a reload.
- Accessible and fast pagesGood sites work for everyone: keyboard, screen readers, contrast and speed.
- Build a to-do appPut it all together: form, array state, render, events and saving, in about 40 lines.