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 WebSockets and Web Workers.
  • Explain how WebSockets enable real-time communication.
  • Describe how Web Workers improve performance.
  • Identify use cases for both technologies.
  • Understand their role in modern web applications.

Overview

Modern web applications require:

  • Real-time communication
  • Fast performance
  • Efficient processing

HTML5 introduced technologies like WebSockets and Web Workers to support these needs.

These technologies allow web applications to:

  • Communicate instantly with servers
  • Perform tasks in the background
  • Improve user experience

1. What are WebSockets?

WebSockets are a communication protocol that allows real-time, two-way communication between a client (browser) and a server.


2. How WebSockets Work

Traditional communication (HTTP):

  • Request → Response → Connection closes

WebSockets:

  • Connection stays open
  • Data flows continuously in both directions

Key Features

  • Real-time updates
  • Continuous connection
  • Faster communication

3. Uses of WebSockets

WebSockets are commonly used in:

  • Chat applications
  • Online gaming
  • Live notifications
  • Real-time dashboards

4. What are Web Workers?

Web Workers allow scripts to run in the background without affecting the main webpage.


5. Purpose of Web Workers

Web Workers help:

  • Improve performance
  • Prevent page freezing
  • Handle heavy tasks

6. How Web Workers Work

Normally:

  • All code runs on the main thread
  • Heavy tasks can slow down the page

With Web Workers:

  • Tasks run in a separate thread
  • The main page remains responsive

7. Uses of Web Workers

Web Workers are used for:

  • Data processing
  • Calculations
  • Background tasks
  • Handling large data sets

8. Importance of WebSockets and Web Workers

These technologies are important because they:

  • Improve application performance
  • Enable real-time features
  • Enhance user experience
  • Support modern web applications

9. Key Differences

Feature WebSockets Web Workers
Purpose Real-time communication Background processing
Function Data exchange with server Run tasks in background
Benefit Instant updates Improved performance

Key Notes

  • WebSockets allow real-time communication between client and server.
  • They maintain an open connection for continuous data exchange.
  • Web Workers run scripts in the background.
  • They prevent the main page from slowing down.
  • Both technologies improve performance and interactivity.
  • They are essential in modern web applications.
Scroll to Top