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 HTML tables.
  • Identify the main elements used to create tables.
  • Explain how rows, columns, and cells are structured.
  • Create simple tables using HTML.
  • Apply table tags correctly in HTML code.

Overview

Tables in HTML are used to organise and display data in a structured format using rows and columns.

They are useful for presenting:

  • Data sets
  • Schedules
  • Lists of information
  • Reports

HTML tables make it easier to read and understand structured information on web pages.


1. What is an HTML Table?

An HTML table is used to display data in a grid format.

It consists of:

  • Rows
  • Columns
  • Cells

Tables are created using specific HTML tags that define their structure.


2. Basic Table Structure

An HTML table is created using the following main tags:

  1. <table> → Defines the table
  2. <tr> → Defines a table row
  3. <td> → Defines a table cell
  4. <th> → Defines a table header

Example of a Simple Table

 
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>John</td>
<td>25</td>
</tr>
</table>
 

3. Table Elements Explained

3.1 <table>

  • Defines the entire table
  • Wraps all table content

3.2 <tr> (Table Row)

  • Represents a row in the table
  • Contains table cells

3.3 <td> (Table Data)

  • Represents a standard cell
  • Contains actual data

3.4 <th> (Table Header)

  • Represents a header cell
  • Usually displayed in bold
  • Used to label columns or rows

4. Table Structure

Tables are organised into rows and columns.

  • Each row is created using <tr>
  • Each cell inside a row is created using <td> or <th>

Example Structure

  • Row 1 → Headers
  • Row 2 → Data
  • Row 3 → Data

This structure helps present information clearly.


5. Table Attributes (Basic)

Tables can include attributes to control appearance.

Examples include:

  • border → adds a border to the table
  • width → sets the width of the table
  • cellpadding → adds space inside cells
  • cellspacing → adds space between cells

Example:

 
<table border="1">
 

6. Importance of Tables

Tables are important because they:

  • Organise data clearly
  • Improve readability
  • Present structured information
  • Help compare values

They are commonly used in:

  • Reports
  • Timetables
  • Data presentations

Key Notes

  • HTML tables display data in rows and columns.
  • The <table> tag defines the table.
  • <tr> creates rows, <td> creates data cells, and <th> creates header cells.
  • Tables help organise and present information clearly.
  • Attributes can be used to adjust table appearance.
  • Tables are useful for structured data presentation.
Scroll to Top