One page, three languages
Every web page is built from three languages with separate jobs: HTML says what is on the page, CSS says how it looks, and JavaScript makes it react.
Change the code and press Run (Ctrl+Enter). Predict what will happen first, then break it on purpose and read what changes. Your edits are saved and match the lesson page.
Ready for more? This phase has 3 hands-on exercises with automatic checks.
Practice questions
Write the code in the editor, run it, then open the model answer to compare.
In the first example, add a second button with id reset and text Reset. Don't make it work yet: just add it in HTML and check it appears with the same style as the first button.
Make the reset button work: when clicked, set the count back to 0.
Explain it without notes
Describe the job of HTML, CSS and JavaScript in one sentence each.
Why is it a good idea to keep content, looks and behaviour in separate languages?
Preview
Console
Nothing logged yet.