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:

  • Define an HTML document.
  • Identify the basic structure of an HTML document.
  • Explain the purpose of key HTML elements such as <html>, <head>, and <body>.
  • Differentiate between tags and elements.
  • Understand the role of the DOCTYPE declaration.

Overview

An HTML document is the foundation of every web page. It defines the structure and content that a web browser displays.

Understanding the structure of an HTML document is essential because it ensures that web pages:

  • Display correctly in browsers
  • Follow proper standards
  • Are easy to read and maintain

HTML documents use a structured format made up of elements, tags, and attributes that work together to organise content.


1. What is an HTML Document?

An HTML document is a file used to create web pages.

It contains:

  • Text content
  • HTML tags
  • Elements that define structure

Key characteristics include:

  • Uses markup (tags) to structure content
  • Can include text, images, links, and multimedia
  • Is interpreted by web browsers

HTML documents form the backbone of websites and allow users to view content online.


2. Basic Structure of an HTML Document

An HTML document follows a standard structure.

The main parts include:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <body>

Example Structure

 
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
</head>
<body>
<h1>Welcome</h1>
<p>This is a simple HTML page.</p>
</body>
</html>
 

This structure ensures that browsers correctly interpret and display the content.


3. Key HTML Elements

3.1 <html> Element

  • The root element of the document
  • Wraps all content on the page
  • Indicates that the document is an HTML file

3.2 <head> Element

  • Contains metadata about the page
  • Not visible to users
  • Used for:
    • Page title
    • Character encoding
    • Linking stylesheets

3.3 <body> Element

  • Contains all visible content
  • Displays:
    • Text
    • Images
    • Links
    • Media

Everything users see on a web page is inside the <body> element.


4. Tags vs Elements

Understanding the difference between tags and elements is important.

4.1 Tags

Tags are used to define elements.

Examples include:

  • <p>
  • <h1>
  • <a>

Tags are written inside angle brackets.


4.2 Elements

An element includes:

  • Opening tag
  • Content
  • Closing tag

Example:

 
<p>This is a paragraph</p>
 

Key Difference

  • A tag is the label
  • An element is the complete structure

5. DOCTYPE Declaration

The DOCTYPE declaration appears at the top of the HTML document.

Example:

 
<!DOCTYPE html>
 

Purpose of DOCTYPE

  • Defines the HTML version
  • Ensures proper rendering in browsers
  • Helps maintain consistency across platforms

It is an essential part of every HTML document.


6. Structure of Content in HTML

HTML uses elements to organise content.

Common elements include:

  • Headings (<h1> to <h6>)
  • Paragraphs (<p>)
  • Links (<a>)
  • Images (<img>)

These elements help create a logical structure for web pages.


Key Notes

  • An HTML document defines the structure of a web page.
  • It includes elements such as <html>, <head>, and <body>.
  • The DOCTYPE declaration defines the HTML version.
  • Tags are used to create elements.
  • Elements include opening tags, content, and closing tags.
  • Proper structure ensures correct display in browsers.
  • HTML is used to organise and present web content.
Scroll to Top