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 HTML data types.
  • Identify different types of content used in HTML.
  • Describe how text, characters, and numbers are represented in HTML.
  • Understand the purpose of character sets and encoding.
  • Recognise different types of content used in web pages.

Overview

In HTML, data types refer to the different kinds of content that can be used and displayed on a web page.

Although HTML does not use strict data types like programming languages, it supports various types of content such as:

  • Text
  • Images
  • Links
  • Media
  • Forms

Understanding these data types helps developers structure and display information correctly on web pages.


1. What are HTML Data Types?

HTML data types refer to the different forms of content that can be included in an HTML document.

These include:

  • Text content
  • Multimedia content
  • Links
  • Structured data (tables, lists)

HTML uses elements and attributes to define how these data types are displayed.


2. Types of HTML Data

HTML supports different types of data used in web pages.

2.1 Text Content

Text is the most common type of data in HTML.

Examples include:

  • Paragraphs (<p>)
  • Headings (<h1> to <h6>)
  • Labels and descriptions

Text content is used to display information to users.


2.2 Character Data

Character data refers to letters, symbols, and special characters.

Examples include:

  • Letters (A, B, C)
  • Numbers (1, 2, 3)
  • Symbols (<, >, &)

Special characters are written using HTML entities.

Example:

  • &lt; represents <
  • &gt; represents >

2.3 Numeric Data

Numeric data includes numbers used in web pages.

Examples include:

  1. Prices
  2. Quantities
  3. Measurements
  4. Dates and time

Numbers can be displayed as text or used in forms and calculations.


2.4 Links (Hyperlinks)

Links connect web pages and resources.

They are created using the <a> tag.

Example:

 
<a href="https://example.com">Visit Website</a>
 

Links allow navigation between pages.


2.5 Images and Multimedia

HTML supports media elements such as:

  • Images (<img>)
  • Audio (<audio>)
  • Video (<video>)

These elements improve user experience.


2.6 Structured Data

Structured data helps organise information.

Examples include:

  • Lists (<ul>, <ol>)
  • Tables (<table>)

This makes content easier to read and understand.


3. Character Sets and Encoding

Character encoding defines how text is stored and displayed.

The most common encoding is:

  • UTF-8

It supports:

  • Multiple languages
  • Symbols
  • Special characters

Example declaration:

 
<meta charset="UTF-8">
 

This ensures that text is displayed correctly across different browsers and devices.


4. Content Types in HTML

HTML supports different content types that help structure web pages.

These include:

  • Text content
  • Media content
  • Interactive content (forms, inputs)
  • Metadata

Each type serves a different purpose in building web pages.


5. Importance of HTML Data Types

Understanding HTML data types is important because it helps developers:

  • Structure content correctly
  • Display information clearly
  • Avoid errors with characters and symbols
  • Improve user experience

Correct use of data types ensures that web pages are readable and functional.


Key Notes

  • HTML data types refer to different types of content used in web pages.
  • Common data types include text, characters, numbers, links, and media.
  • Special characters are written using HTML entities.
  • UTF-8 is the standard character encoding.
  • HTML elements are used to define how data is displayed.
  • Structured data helps organise information clearly.
  • Understanding data types improves web page design and functionality.
Scroll to Top