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 semantic HTML.
  • Explain the importance of organising content properly.
  • Identify common semantic HTML elements.
  • Understand how semantic elements improve accessibility and readability.
  • Apply semantic structure in web pages.

Overview

Semantic HTML refers to the use of HTML elements that clearly describe their meaning and purpose.

Instead of using generic tags, semantic elements help define the structure of a webpage in a meaningful way.

Using semantic HTML helps:

  • Improve readability of code
  • Enhance accessibility
  • Support search engines (SEO)
  • Organise content logically

1. What is Semantic HTML?

Semantic HTML uses elements that clearly describe the role of the content they contain.

Examples include:

  • <header> → Defines the header of a page
  • <nav> → Defines navigation links
  • <main> → Defines main content
  • <section> → Defines a section of content
  • <article> → Defines independent content
  • <footer> → Defines the footer

These elements give meaning to the structure of a webpage.


2. Importance of Semantic HTML

Using semantic HTML is important because it:

  • Makes code easier to understand
  • Improves accessibility for screen readers
  • Helps search engines understand content
  • Improves website structure

Without semantic elements, web pages can be harder to read and interpret.


3. Common Semantic Elements

HTML provides several semantic elements.

3.1 <header>

  • Represents the top section of a page
  • May include:
    • Title
    • Logo
    • Navigation

3.2 <nav>

  • Contains navigation links
  • Used for menus

3.3 <main>

  • Contains the main content
  • Only one <main> per page

3.4 <section>

  • Groups related content
  • Used for different sections of a page

3.5 <article>

  • Represents independent content
  • Can stand alone

Examples:

  • Blog posts
  • News articles

3.6 <footer>

  • Represents the bottom section of a page
  • May include:
    • Contact information
    • Copyright details

4. Organising Content with Semantic Elements

Semantic elements help organise web pages clearly.

Example structure:

 
<header>
<h1>My Website</h1>
</header>

<nav>
<a href="#">Home</a>
<a href="#">About</a>
</nav>

<main>
<section>
<h2>Section Title</h2>
<p>Content goes here.</p>
</section>
</main>

<footer>
<p>Copyright 2024</p>
</footer>
 

5. Benefits of Organised Content

Using semantic HTML provides several benefits:

  • Easier to read and maintain code
  • Better user experience
  • Improved accessibility
  • Clear content structure
  • Better SEO performance

6. Semantic vs Non-Semantic Elements

Semantic Elements

  • Clearly describe their purpose
  • Example:
    • <header>
    • <footer>
    • <article>

Non-Semantic Elements

  • Do not describe content meaning
  • Example:
    • <div>
    • <span>

Key Difference

  • Semantic elements provide meaning
  • Non-semantic elements are generic

Key Notes

  • Semantic HTML uses meaningful tags to structure content.
  • Common semantic elements include <header>, <nav>, <main>, <section>, <article>, and <footer>.
  • Semantic HTML improves readability and organisation.
  • It enhances accessibility and search engine optimisation.
  • Semantic elements provide meaning, while non-semantic elements are generic.
  • Proper content organisation improves user experience.
Scroll to Top