Programming (also called coding) is the process of writing instructions for a computer to follow. These instructions are written in a programming language that the computer can understand.
Think of programming like giving a recipe to a very fast and literal chef. The computer does exactly what you tell it – nothing more, nothing less. That's why precision is so important in programming.
The first programming languages were developed in the 1950s. Today, there are over 700 programming languages!
Think of a task you do every day.
Can you break it down into steps like a program?
For example: "Making breakfast" could be:
1. Take a bowl.
2. Add cereal.
3. Pour milk.
4. Eat with a spoon.
That's programming logic!
Create a simple algorithm for a task of your choice.
Choose one:
1. How to make a sandwich
2. How to brush your teeth
3. How to tie your shoelaces
Write the steps in order. Then, think about:
• What would happen if you changed the order of steps?
• What would happen if you missed a step?
Discuss your algorithm with a partner.
Allah has created the universe with order and patterns.
The Qur'an says: "And everything with Him is by measure." (13:8)
Programming is a way of thinking in an orderly way.
When we write code, we are using the intellect that Allah has given us.
Use your skills to solve problems and help others.
Programming is writing instructions for computers. Key concepts include variables, data types, conditions, and loops. Different programming languages have different uses. Programming teaches logical thinking and problem-solving skills.
HTML (HyperText Markup Language) is the standard language used to create web pages. It provides the structure of a webpage – like the skeleton of a building.
HTML uses tags (like <h1> and <p>)
to tell the web browser how to display content.
HTML was created by Tim Berners-Lee in 1991. The first webpage was about how to create web pages!
Every HTML document has a basic structure:
<h1> to <h6> – Headings (h1 is the biggest, h6 is the smallest).
<p> – Paragraph text.
<img> – Images (self-closing tag).
<a> – Links to other pages.
<ul> and <li> – Unordered (bulleted) lists.
<div> – A container for grouping content.
Create a simple HTML page:
1. Open Notepad (or any text editor).
2. Type the HTML code shown above.
3. Save the file as "my_page.html".
4. Double-click the file to open it in your web browser.
You've created your first web page!
Create an HTML page about your favorite hobby.
Include:
1. A title (using <h1>)
2. A paragraph describing your hobby.
3. A list of things you need for your hobby.
4. An image (you can use a placeholder URL).
5. A link to a website about your hobby.
Save your page and open it in a browser.
Creating web pages is a way to share information with the world.
The Prophet ﷺ said: "Convey from me even if it is one verse."
When you create a website, you can share knowledge, inspire others,
and help people. Use this skill for good!
HTML is the standard language for creating web pages.
It uses tags like <h1>, <p>,
<img>, and <a> to structure content.
Every HTML page has a head (meta information) and a
body (visible content). HTML is the foundation
of all websites.
A computer system is a combination of hardware (the physical parts you can touch) and software (the programs that run on it). They work together to process data and perform tasks.
The first operating system was created in the 1950s for mainframe computers. Today, we have operating systems for phones, watches, and even cars!
Imagine a computer as a busy office.
The CPU is the manager who makes all the decisions.
The RAM is the desk where files are placed while working.
The hard drive is the filing cabinet where everything is stored.
The motherboard is the office layout that connects everything.
The power supply is the electricity that makes everything work.
And the operating system is the manager's assistant who makes sure
everything runs smoothly!
Each part has a job, and they all work together!
Draw a diagram of a computer system.
Include:
1. Hardware (CPU, RAM, Storage, Motherboard).
2. Software (Operating System, Application Software).
3. Arrows showing how they work together.
Label each part and explain its role.
Computers are a blessing from Allah that help us in many ways.
The Qur'an says: "And He has subjected to you whatever is in the heavens and on the earth..." (45:13).
The design of a computer system reminds us of the complexity
and order in Allah's creation. Be grateful
for technology and use it to serve humanity.
A computer system is made of hardware (CPU, RAM, storage, motherboard) and software (operating system, applications, utilities). Both are essential for a computer to work. The operating system manages hardware and provides a platform for applications.
Computers store all data using binary – a system of only two digits: 0 and 1. Each 0 or 1 is called a bit (binary digit).
Why binary? Because computers are made of switches that can be either ON (1) or OFF (0). It's a very reliable way to represent information.
In the early days of computing, binary was stored using punch cards – holes (1) and no holes (0)!
Binary numbers use place values that are powers of 2. Each position in a binary number represents a different power of 2:
Example: The binary number 1010101 equals 64 + 16 + 4 + 1 = 85 in decimal.
Practice converting binary to decimal:
1. 00000001 = ? (Answer: 1)
2. 00000010 = ? (Answer: 2)
3. 00000100 = ? (Answer: 4)
4. 00001000 = ? (Answer: 8)
5. 00101010 = ? (Answer: 42)
Can you see the pattern? Each position doubles the value.
Convert these binary numbers to decimal:
1. 00010001 = _____
2. 00110011 = _____
3. 01010101 = _____
4. 11110000 = _____
5. 11111111 = _____ (hint: 255!)
Check your answers with a partner.
The binary system shows that even the most complex data can be represented by
simple patterns of 0s and 1s. The Qur'an says:
"And everything with Him is by measure." (13:8)
The order and precision of binary reminds us of the precision
in Allah's creation. Everything is created with measure and balance.
Computers store data in binary (0s and 1s). A bit is a single 0 or 1. A byte is 8 bits. Larger units are KB, MB, GB, and TB. Binary uses place values based on powers of 2. Understanding binary helps us appreciate how computers work.
The internet is a global network of computers that communicate with each other. It's like a huge system of roads that connect cities – but instead of cities, we have servers, and instead of roads, we have cables and wireless signals.
There are over 5 billion internet users in the world today – that's more than 60% of the global population!
A student named Aisha wanted to visit a website to learn about animals.
She typed the address into her browser and pressed Enter.
Her browser asked the DNS: "Where can I find this website?"
The DNS replied: "Here is the IP address."
Her browser sent a request across the internet, through many routers,
to the server that held the website. The server replied with the web page,
and Aisha's browser displayed it on her screen.
All of this happened in less than a second!
The lesson: The internet is a remarkable system
that connects us to information around the world.
Draw a diagram showing how a web page travels from a server to your computer.
Include:
1. Your computer (client).
2. The internet (cloud).
3. A server.
4. A router.
5. Arrows showing the flow of requests and responses.
Label each part and explain its role.
The internet connects people across the world. The Qur'an says:
"O mankind, indeed We have created you from male and female and made you peoples
and tribes that you may know one another..." (49:13)
The internet is a powerful way to connect with others and
share knowledge. Use it to build bridges
and help others.
The internet is a global network of computers. Clients request information from servers. Routers direct internet traffic. Every device has a unique IP address. Domain names (like www.example.com) are human-friendly names for IP addresses. Understanding the internet helps us use it more effectively.
Cybersecurity is the practice of protecting computers, networks, and data from unauthorized access, attacks, and damage. It's like having a lock on your door – but for the digital world.
The first computer virus, called "Creeper," was created in 1971. It displayed the message: "I'm the creeper, catch me if you can!"
A student named Ibrahim received a suspicious email that said he had won a prize.
He felt excited but remembered his teacher's lesson about cybersecurity.
He did not click the link. Instead, he showed his parents, and they confirmed
it was a phishing scam. Ibrahim had protected himself by
thinking before clicking.
The lesson: Always be cautious online. If something seems too good
to be true, it probably is. Protect yourself and others by being careful.
Create a "Cybersecurity Tips" poster.
Include:
1. 5 tips for staying safe online.
2. A picture or icon for each tip.
3. A quote from the Qur'an or Hadith about honesty or kindness.
Share your poster with your class or family.
Cybersecurity is about protecting ourselves and others.
The Prophet ﷺ said: "The best of people are those who are most beneficial to others."
When we use technology safely and ethically, we are protecting ourselves
and benefiting others. Be a responsible digital citizen.
Cybersecurity protects computers, networks, and data from threats. Common threats include malware, phishing, hacking, and spam. Protect yourself with strong passwords, 2FA, and caution online. In Islam, digital ethics include honesty, kindness, privacy, responsibility, and gratitude. Use technology safely and ethically.
You've explored programming concepts, HTML, computer systems, data representation, the internet, and cybersecurity. You are now ready to continue your journey into the world of computer science! May Allah bless your learning and help you use technology for good!