Complete this domino activity to revise key definitions on how text files, pictures and sound files are stored on a computer using binary code.
Complete this domino activity to revise key definitions on how text files, pictures and sound files are stored on a computer using binary code.
In this challenge we are learning how to format text on a web page using a range of CSS properties.
Remember the key syntax for CSS is as follows:

In this challenge we will use various CSS properties such as:
You can learn more about all these CSS properties on w3schools.com.
Check the code below to see how we created the following 5 headings. Tweak the code to change the style of your headings and reuse it in your own webpages or CSS stylesheets.
Check the code below to see how we applied CSS to the <P> tag. Tweak the code to change the style of your paragraphs and reuse it in your own webpages or CSS stylesheets.
Once your website is ready, you will want to design and add a favicon.
This graphic will appear in your web-browser in the tab section as well as in the favourite toolbar.
![]()
The favicon is also used by smartphone and tablets as an “App” icon when the user decides to pin your webpage on their home screen.
![]()
There are different approaches to create your favicon. One easy approach is to use a website such as favicon.cc
Once your icon is ready save it as favicon.cc in the root folder of your website:
![]()
Access the code of your webpage and in the <HEAD> section add the following code:
<link rel='icon' href='favicon.ico' type='image/x-icon'/ >
So your code should now look like this:
![]()
That’s it, save your page and access it in a web-browser. The favicon should now appear in the tab, next to the page title.
There are many CSS properties that can be used to change the look and feel of your web graphics. You can use CSS to:
Investigate the use of CSS in the examples provided below. Then reuse some of these skills to update your pictures on your own webpages.
See the Pen Using CSS with Pictures by 101 Computing (@101Computing) on CodePen.
See the Pen Rollover animation effects on pictures by 101 Computing (@101Computing) on CodePen.
In this video tutorial you will learn:
Are you ready to build up your first website? Before using this blog post let’s go through this checklist:
If the answer to all questions above is “yes!” then you are ready to implement your website using HTML and CSS.
The first task is to create the overall layout of your webpage.
Compare your design with the following layouts. Would one of these be suitable to implement your first webpage? If so you can check how it’s made by clicking on the pictures below to display the page in full view and check its source code.

Whack-a-mole is a popular arcade game invented in 1976 by Aaron Fechter of Creative Engineering, Inc.. The adaptation of this game to the mirco:bit has been fully designed and implemented by one of our students during a computer science lesson!
The aim of the game is to use a mallet to strike a mole within a certain time. Moles randomly appear for a short time above a hole.
As we will be using the micro:bit, our game will consists of two holes and two moles. The player will strike a mole by pressing the A or the B button on the micro:bit depending on whether the mole appears on the left or the right hand side of the LED screen.
Look at the picture below. The ! represents a mole on the left hand side, The player has less than 1 second to whack this mole by pressing the A button.

Tweak this code so that both moles can appear at the same time. In this case the player needs to press both buttons A and B simultaneously to strike both moles otherwise they lose.

When the user strike both moles simultaneously they should get a 5-point bonus added to their score.

To start with the delay should be set to 1000ms, it should then decrease to 900ms, then 800ms, 700ms, etc…
Tip: Use a variable to store the value of the delay. Initialise this variable to 1000ms.



print("Hello World")
In the above Python instruction: “Hello World” is a string. Notice the use of speech marks when using a string in code.
A string can be stored in a variable for instance.
greeting = "Hello" print(greeting)
In Python string concatenation is done using the + sign:
firstname = "James"
print("Hello " + firstname)
For this challenge we will use the microbit and a couple of LEDs to act as the indicators lights of a car. Our aim is to use the built-in accelerometer sensor of the mincro:bit to detect if it is being tilted to the left or to the right. If so, the micro:bit will “turn the indicator” on by making one of the two yellow LEDs blink to indicate the player is turning to the left or to the right.

Using a red and a blue LED create an electronic circuit for the siren of a police car or a fire truck. Code your micro:bit to create the lighting sequence/pattern of your choice for your siren. You could also add a buzzer/speaker to create the sound of the siren. Use buttons A and B of the micro:bit to turn the siren on or off.
Have you ever seen a lightning flash or heard the thunder of lightning and wondered how close you were from the lightning strike? Have you noticed that there often was a delay between the flash of light and the clap of thunder when a lightning occurs?
It is possible to calculate the distance to a lightning strike by counting the seconds between the lightning flash and the sound of thunder.
When lightning strikes, the first thing you see is the flash of light which you can see instantly. This is because light travels at a very high speed (Speed of light = 300,000 km/s). At the same time a clap of thunder is created. However, in the air a sound wave does not travel as fast as light, so it may take a few seconds for this clap of thunder to reach you. This depends on how far you are from the lightning.
Look at the following diagram and check the formula of speed. Bear in mind that the speed of a sound wave in the air is 340 m/s.


We will complete this project in three main coding blocks.
First, let’s display an arrow pointing left to invite the user to press button A when they see a lightning strike.

Then we will record the exact time (in milliseconds) as to when button A was pressed and store this number in a variable called lightning. We will also display an arrow pointing towards button B.

Let’s now record the time (in milliseconds) when button B is pressed using a variable called thunder. We can then use these two timestamps to work out the time delay between the lightning strike and when the thunder was heard. Using the distance = speed x time formula, we can then workout and output the distance in meters from the lightning strike:

