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.
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
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.
Web StudioA blank pageRunDownloadCopy a linkStart againindex.htmlstyle.cssscript.js1<!DOCTYPE html>2<html>3 <head>4 <meta charset="utf-8">5 <title>My page</title>6 <link rel="stylesheet" href="style.css">7 </head>8 <body>9 <h1>Hello!</h1>10 <script src="script.js"></script>11 </body>12</html>PreviewHello!Choose a project from the Project list. 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.
- index.html holds the content: the headings, words, pictures and buttons, written in HTML.
- style.css holds the style: colours, fonts, sizes and layout, written in CSS.
- script.js holds the behaviour: what happens when you click, written in JavaScript.
Web StudioA blank pageRunDownloadCopy a linkStart againindex.htmlstyle.cssscript.js1<!DOCTYPE html>2<html>3 <head>4 <meta charset="utf-8">5 <title>My page</title>6 <link rel="stylesheet" href="style.css">7 </head>8 <body>9 <h1>Hello!</h1>10 <script src="script.js"></script>11 </body>12</html>PreviewHello!A tab for each file. The page on the right updates as you type. 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.
Web StudioA blank pageRunDownloadCopy a linkStart againindex.htmlstyle.cssscript.js1<!DOCTYPE html>2<html>3 <head>4 <meta charset="utf-8">5 <title>My page</title>6 <link rel="stylesheet" href="style.css">7 </head>8 <body>9 <h1>Hello!</h1>10 <script src="script.js"></script>11 </body>12</html>PreviewHello!The preview shows your page. Run updates it by hand. 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.
Web StudioA blank pageRunDownloadCopy a linkStart againindex.htmlstyle.cssscript.js1<!DOCTYPE html>2<html>3 <head>4 <meta charset="utf-8">5 <title>My page</title>6 <link rel="stylesheet" href="style.css">7 </head>8 <body>9 <h1>Hello!</h1>10 <script src="script.js"></script>11 </body>12</html>PreviewHello!Download saves your page as a file you can keep. 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.cssandscript.js. Double clickindex.htmlto 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
- Open the Web Studio on a club computer to check it works through the school's filter. It runs entirely in the browser.
- 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.
- 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.