Course Content
KM-01: Hypertext Markup Language (HTML) Basics
This module introduces learners to the foundational concepts required to begin working with HTML programming. It covers basic computer concepts, the introduction to HTML programming, suitable Integrated Development Environments (IDEs), Git and GitHub, problem-solving in programming, the life cycle for developing a solution, and an overview of the look and feel of a website. The module builds the learner’s understanding of the fundamentals of HTML as a programming language and prepares them for more detailed HTML document structure, styling, and practical web development work in later modules.
0/15
KM-02: HTML Programming Principles
This module builds on the foundational knowledge from KM-01 and focuses on the core principles of HTML programming. It introduces learners to the structure of an HTML document, including tags, elements, and attributes, and how these are used to organise and present content on web pages. The module also covers HTML data types, text formatting, tables, file and folder structures, and semantic organisation of content. In addition, learners are introduced to how web pages communicate with remote servers. By the end of this module, learners will have a solid understanding of how to create well-structured, readable, and functional HTML documents that form the backbone of web development.
0/21
KM-03: HTML and Cascading Style Sheets (CSS) Styling Principles
This module introduces learners to the principles of styling web pages using Cascading Style Sheets (CSS). While HTML provides the structure of a webpage, CSS is used to control the appearance, layout, and visual presentation. Learners will develop the ability to design visually appealing and user-friendly web pages by applying styling techniques such as colours, fonts, spacing, layouts, and responsive design. The module also introduces HTML forms, which are used to collect user input and are an important part of interactive web applications. By the end of this module, learners will be able to apply CSS styling principles to improve the readability, usability, and overall user experience of web pages.
0/7
KM-04: HTML Intermediate Programming Functionalities
This module builds on foundational HTML knowledge and introduces learners to more advanced and interactive web development features. Learners will explore how to create dynamic and interactive web pages using HTML5 functionalities and APIs, as well as how to work with multimedia, offline capabilities, and modern web technologies. The module focuses on improving user experience and preparing learners for real-world web development environments.
0/15
WM-01: Workplace Module
Introduction to Workplace Modules Workplace Modules are designed to ensure that learners: -Apply their skills in a real or simulated work environment -Demonstrate industry readiness -Perform tasks aligned with real job roles
0/1
HTML Programmer

Lesson Outcomes

After completing this lesson, learners will be able to:

  • Explain the concept of files and folders in web development.
  • Describe how files are organised in a project.
  • Define file paths.
  • Differentiate between absolute and relative file paths.
  • Apply correct file paths in HTML.

Overview

In web development, files and folders are used to organise website content such as HTML pages, images, and other resources.

Understanding how files are structured and how to reference them correctly is important because:

  • Web pages need to link to other files
  • Images and media must be displayed correctly
  • Projects must be organised for easy management

File paths are used in HTML to locate and connect these files.


1. Files and Folders in Web Development

A website is made up of different files stored in folders.

1.1 Files

Files contain content or code.

Examples include:

  • HTML files (.html)
  • CSS files (.css)
  • JavaScript files (.js)
  • Image files (.jpg, .png)

1.2 Folders

Folders are used to organise files.

They help developers:

  • Keep projects structured
  • Group related files
  • Manage large projects easily

Example folder structure:

 
project/
├── index.html
├── images/
│ └── logo.png
└── css/
└── style.css
 

2. What is a File Path?

A file path is the location of a file in a folder structure.

It tells the browser where to find a file.

File paths are used in HTML for:

  • Images
  • Links
  • Stylesheets
  • Scripts

3. Types of File Paths

There are two main types of file paths.

3.1 Absolute File Path

An absolute path gives the full address of a file.

Example:

 
<img src="https://example.com/images/logo.png">
 

Characteristics:

  • Includes the full URL
  • Used for external resources
  • Works from any location

3.2 Relative File Path

A relative path gives the location of a file based on the current file.

Example:

 
<img src="images/logo.png">
 

Characteristics:

  • Based on current folder
  • Shorter and easier to manage
  • Commonly used in projects

4. Navigating File Paths

Relative paths use symbols to move between folders.

Common Path Symbols

  • ./ → current folder
  • ../ → parent folder

Examples

  1. File in same folder:
 
<img src="image.jpg">
 
  1. File in a subfolder:
 
<img src="images/photo.jpg">
 
  1. File in a parent folder:
 
<img src="../image.jpg">
 

5. Importance of File Paths

File paths are important because they:

  • Ensure files are correctly linked
  • Allow images and resources to load
  • Help organise project structure
  • Prevent broken links

Incorrect file paths can cause:

  • Missing images
  • Broken links
  • Errors in web pages

6. Best Practices for File Organisation

To manage files effectively:

  • Use clear and meaningful folder names
  • Keep files organised in folders
  • Use consistent naming conventions
  • Avoid spaces in file names
  • Use relative paths for internal files

Good organisation improves development efficiency.


Key Notes

  • Files store content such as HTML, CSS, and images.
  • Folders organise files into structured groups.
  • A file path shows the location of a file.
  • Absolute paths use full URLs.
  • Relative paths are based on the current file location.
  • Symbols like ./ and ../ help navigate folders.
  • Correct file paths are essential for linking resources.
  • Good file organisation improves project management.
Scroll to Top