Coding Club

Web development

Six projects in the three languages of the web: HTML for content, CSS for style and JavaScript to make things happen. Everything runs in the site's own Web Studio, so there is nothing to install, and every page you make can be downloaded and opened in any browser.

Six days, six projects

One small project a session. Each one is a numbered list of steps with a picture of what to click and what you should see, then tests and stretch challenges for anyone who finishes early.

Day 1All About MeWrite your first web page in HTML: headings, a paragraph, lists, a link and an emoji, all about you.
Day 2Style StudioGive yesterday's page colours, fonts and boxes with CSS, and see how one file changes the whole look.
Day 3Top 5 Fan SiteBuild a fan page for your five favourite animals, with a header, a menu and cards laid out side by side.
Day 4Magic ButtonWrite your first JavaScript: a button that gives a random compliment and changes the colour of the page.
Day 5Star CatcherMake a game: a star jumps around a night sky, and you have 20 seconds to click it as many times as you can.
Day 6Pet PalLook after a virtual pet: its food and fun drop every second, so feed it and play with it, or it gets sad.

Get set up before day 1

You will need

  • Any computer with a web browser
  • The Web Studio on this site, or Notepad
  • No account needed
  1. Setup step 1: Open the Web Studio

    Open the Web Studio in a new tab. It is part of this site, free, with nothing to install and no account. Pick a project from the Project list at the top: each day's project starts you off with its first step already typed in.

    Choose a project from the Project list.
  2. Setup step 2: Three files, three jobs

    A web page is made of three kinds of code, each in its own file, and each has a tab in the Studio.

    1. index.html holds the content: the headings, words, pictures and buttons, written in HTML.
    2. style.css holds the style: colours, fonts, sizes and layout, written in CSS.
    3. script.js holds the behaviour: what happens when you click, written in JavaScript.
    A tab for each file. The page on the right updates as you type.
  3. Setup step 3: Watch it change as you type

    Type in the code on the left, and the preview on the right changes as you type. Your work is saved in the browser on this computer, so it is still there next time. If you would rather run it by hand, untick Run as I type and press Run.

    The preview shows your page. Run updates it by hand.
  4. Setup step 4: Keep a copy

    Download saves your page as one .html file that opens in any browser, so you can keep it, email it or put it on a memory stick. Copy a link makes a link with your whole page inside it: open the link on another computer to carry on there.

    Download saves your page as a file you can keep.
  5. Setup step 5: No Studio? Use Notepad

    Every project also works with files on a computer. Make a folder, then use Notepad (or any text editor) to save three files in it: index.html, style.css and script.js. Double click index.html to open it in a browser, and press F5 to reload it after each change.

    Watch out Notepad can add .txt to the end of a file's name. In the Save box, set Save as type to All files before you save.
Notes for the teacher

Before the first session

  1. Open the Web Studio on a club computer to check it works through the school's filter. It runs entirely in the browser.
  2. Work is saved in each browser, on that computer. If students change computers between sessions, they should use Download or Copy a link at the end of each session, or start each day from its own starter, which is how the projects are written.
  3. Without the Studio, any text editor and browser will do: see the last setup step.

How the six projects build up

Days 1 and 2 are HTML then CSS, on the same page. Day 3 is layout. Days 4 to 6 add JavaScript: events, then timers, then state. Every day starts from its own starter in the Studio, so a student who missed a session can still join in.