Lesson Plan

Lesson Plan
Grade: Date: 25/02/2026
Subject: Information Communication Technology ICT
Lesson Topic: Know and understand relative file path and absolute file path including the reason absolute file paths must not be used for hyperlinks to locally saved web pages/objects
Learning Objective/s:
  • Describe the difference between absolute and relative file paths.
  • Explain why absolute paths should not be used for hyperlinks to locally saved web pages or objects.
  • Demonstrate how to construct relative paths using “.” and “..”.
  • Apply a checklist to verify correct path usage in a simple website folder structure.
  • Evaluate the portability of links when moving a website folder to another location.
Materials Needed:
  • Projector and screen
  • Computer with internet access
  • Text editor or IDE (e.g., Visual Studio Code)
  • Sample website folder on local drive
  • Printed worksheet with path exercises
  • Whiteboard and markers
Introduction:
Begin with a quick question: “What happens to a link when you copy a website folder to another computer?” Review that a file path tells the browser where a resource lives. Today we’ll identify absolute vs. relative paths and set the success criteria: students will correctly rewrite links using relative paths and justify why absolute paths are unsuitable for local hyperlinks.
Lesson Structure:
  1. Do‑now (5’) – Students examine a broken link in a copied folder and note the problem.
  2. Mini‑lecture (10’) – Define absolute and relative paths, show examples, discuss portability issues.
  3. Guided demo (10’) – Teacher opens the sample folder, converts an absolute link to a relative one, and tests it.
  4. Pair activity (15’) – Learners use the checklist to rewrite a set of hyperlinks in the worksheet; teacher circulates.
  5. Quick check (5’) – Kahoot quiz on path concepts.
  6. Reflection (5’) – Students write one reason why relative paths are preferred for local projects.
Conclusion:
Summarise that relative paths keep links functional across devices, while absolute paths tie them to a specific location. For exit, each student shares one rewritten link on the board. Homework: create a tiny two‑page website using only relative paths for all resources.