Course Content
🧩 Introduction to Programming?
What is Programming? 🎯 Objectives: 📘 Explanation: 💻 Example (in Pseudocode): 🛠️ Exercise:
0/1
🧩 Module 2: Adding Interactivity (JavaScript)
0/3
🧩 Module 3: Programming Language (Python)
0/1
🎓 Coding for Kids: A Beginner’s Course | HTML, CSS, JavaScript & Python

DOM Manipulation

Objective: Change webpage content dynamically.

  • document.getElementById().

  • Changing text (innerHTML).

  • Event listeners (onclick).

Code Example:

html
 
<button onclick="changeText()">Click Me</button>
<p id="demo">Old Text</p>
<script>
    function changeText() {
        document.getElementById("demo").innerHTML = "New Text!";
    }
</script>

Exercise:

  • Create a button that changes a paragraph’s text.