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 tags.
  • Identify different types of HTML tags.
  • Explain how tags are used to structure content.
  • Recognise common HTML tags used in web development.
  • Apply HTML tags correctly in code.

Overview

HTML tags are the building blocks used to create web pages. They define how content is structured and displayed in a browser.

Tags are written using angle brackets and are used to:

  • Create elements
  • Structure content
  • Define meaning of content

Understanding HTML tags is essential for writing correct and effective HTML code.


1. What are HTML Tags?

HTML tags are special keywords used to define elements in an HTML document.

They are written inside angle brackets:

  • <tagname>

Most HTML tags come in pairs:

  • Opening tag → <p>
  • Closing tag → </p>

Tags tell the browser how to display content.


2. Types of HTML Tags

There are different types of HTML tags based on how they are used.

2.1 Container Tags

Container tags have both opening and closing tags.

They contain content inside them.

Examples include:

  • <p>Paragraph</p>
  • <h1>Heading</h1>
  • <div>Content</div>

2.2 Empty (Self-Closing) Tags

Empty tags do not have closing tags.

They do not contain content.

Examples include:

  • <img>
  • <br>
  • <hr>

These tags perform specific functions without enclosing content.


3. Common HTML Tags

HTML provides many tags for different purposes.

3.1 Text Tags

Used to display text content.

Examples:

  • <h1> to <h6> → headings
  • <p> → paragraph
  • <strong> → bold text
  • <em> → italic text

3.2 Link Tags

Used to create hyperlinks.

Example:

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

3.3 Image Tags

Used to display images.

Example:

 
<img src="image.jpg" alt="Image">
 

3.4 List Tags

Used to organise content into lists.

Examples:

  • <ul> → unordered list
  • <ol> → ordered list
  • <li> → list item

3.5 Table Tags

Used to create tables.

Examples:

  • <table> → table
  • <tr> → table row
  • <td> → table cell
  • <th> → table header

3.6 Form Tags

Used to collect user input.

Examples:

  • <form>
  • <input>
  • <textarea>
  • <button>

4. Importance of HTML Tags

HTML tags are important because they:

  • Define the structure of a web page
  • Help browsers understand content
  • Improve readability of code
  • Support accessibility
  • Enable proper display of information

5. Best Practices for Using Tags

To use HTML tags effectively:

  • Always close tags properly
  • Use correct tag names
  • Maintain proper nesting
  • Use semantic tags where possible

Good practices help create clean and error-free code.


Key Notes

  • HTML tags are used to define elements.
  • Tags are written inside angle brackets.
  • Most tags have opening and closing pairs.
  • Some tags are self-closing.
  • Tags are used to structure content such as text, images, lists, and tables.
  • Proper use of tags ensures correct display and functionality.
  • Following best practices improves code quality.
Scroll to Top