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 forms.
  • Explain the purpose of forms in web development.
  • Identify common form elements.
  • Create basic HTML forms.
  • Understand how forms collect user input.

Overview

HTML forms are used to collect user input on a webpage.

They are essential for interactive websites and are commonly used for:

  • Login pages
  • Registration forms
  • Contact forms
  • Surveys

Forms allow users to enter data, which can then be processed by a server.


1. What is an HTML Form?

An HTML form is a section of a webpage used to collect input from users.

It is created using the <form> tag.

Example:

 
<form>
<!-- form elements go here -->
</form>
 

2. Purpose of HTML Forms

Forms are used to collect and send data.

Common Uses

  • User registration
  • Login authentication
  • Contact submissions
  • Feedback collection

3. Form Elements

Forms include different input elements.

3.1 Input Fields

The <input> tag is used to collect data.

Examples:

  • Text input:
 
<input type="text">
 
  • Password input:
 
<input type="password">
 

3.2 Labels

The <label> tag describes an input field.

Example:

 
<label>Name:</label>
<input type="text">
 

3.3 Buttons

Used to submit or reset forms.

Example:

 
<button type="submit">Submit</button>
 

3.4 Textarea

Used for longer text input.

Example:

 
<textarea></textarea>
 

3.5 Radio Buttons

Used to select one option.

Example:

 
<input type="radio" name="gender"> Male
<input type="radio" name="gender"> Female
 

3.6 Checkboxes

Used to select multiple options.

Example:

 
<input type="checkbox"> Option 1
<input type="checkbox"> Option 2
 

4. Form Attributes

Forms use attributes to define behaviour.

Common Attributes

  • action → where the form data is sent
  • method → how data is sent (GET or POST)

Example:

 
<form action="submit.php" method="post">
 

5. Example of a Simple Form

 
<form>
<label>Name:</label>
<input type="text"><br><br>

<label>Email:</label>
<input type="email"><br><br>

<button type="submit">Submit</button>
</form>
 

6. Importance of Forms

Forms are important because they:

  • Enable user interaction
  • Collect important data
  • Support web applications
  • Allow communication between users and systems

Key Notes

  • HTML forms collect user input.
  • The <form> tag defines a form.
  • Input elements include text fields, passwords, radio buttons, and checkboxes.
  • Labels describe input fields.
  • Buttons are used to submit data.
  • Attributes like action and method control form behaviour.
  • Forms are essential for interactive websites.
Scroll to Top