Introduction to HTML Forms

Introduction

HTML forms are the primary way that web pages collect information from people: a search box, a login screen, a checkout page, and a survey are all forms. At its core, a form is a container element, <form>, that groups a set of controls (text boxes, checkboxes, radio buttons, drop-down lists, buttons) and defines what should happen when the user submits them. Two attributes on the <form> element do most of that work: action, which names the URL that will receive the data, and method, which says how the data travels (most commonly GET or POST).

In this course, forms are the bridge between the browser and server-side processing. Before you can validate input or handle it in application code, you need a clear mental model of form structure: the <form> wrapper, the controls inside it, the name attribute that labels each piece of submitted data, the <label> elements that connect text to controls, and the submit button that triggers the request. Getting this structure right from the start makes later work on accessibility and validation far easier.

As you watch the videos below, pay attention to a few things: how the <form> tag is opened and closed and what sits inside it, where action and method appear and how they are described, how each input is given a name and an associated label, and how different input types change what the user sees and what gets sent. Try typing along with at least one example rather than only watching.

Video 1: Forms and input tags in HTML | Sigma Web Development Course - Tutorial #7

CodeWithHarry · 14:53 · 1,248,881 views · 3y ago · captions — Watch on YouTube

About this video

A tutorial from CodeWithHarry's Sigma Web Development series covering forms and input tags in HTML. Based on its title and series position, it should introduce the <form> element, walk through the common input tags and their type values, and show how these pieces fit together into a working form. At roughly fifteen minutes, it has room to demonstrate several control types and discuss submission attributes.

Why this video

CodeWithHarry is a widely followed web development channel, and this lesson sits inside a structured beginner course, so the material is presented in sequence rather than in isolation — a good match for the "What Is an HTML Form?" and "Overview of Form Structure" subtopics.

Video 2: [HTML-Tutorial-19] Basic Form | form, input, label, button elements | Web Development for Beginners

Code Range · 11:47 · 106,972 views · 5y ago · captions — Watch on YouTube

About this video

This Code Range tutorial builds a basic sign-up form from scratch using the form, label, input, and button elements. The description indicates it also covers different input types, so you should see how a realistic form is assembled control by control. It is part of a numbered HTML tutorial series aimed at beginners.

Why this video

Building one complete form end to end is the clearest way to see overall form structure, and the explicit focus on label and button elements supports the semantic and accessibility habits emphasized in this module.

Video 3: HTML Forms and Inputs in 7 Minutes!

Learndev · 7:22 · 16,399 views · 2y ago · captions — Watch on YouTube

About this video

A condensed seven-minute overview from Learndev that moves through form basics, a login form example, input labels, and placeholder text, according to its listed chapters. It is organized with timestamps, so you can jump directly to the segment you need. Expect a fast but focused tour of the essential pieces.

Why this video

This is a useful quick review or first pass before the longer tutorials, and its chapter markers make it easy to revisit specific subtopics such as the form element or labeling inputs.

How These Videos Support the Learning Outcomes

Together these videos establish the foundation that the rest of the module builds on. All three demonstrate constructing a form from the <form> element, inputs, labels, and buttons, which directly supports MO1's emphasis on well-structured, semantic forms; the discussion of action and method introduces the submission mechanics you will compare in detail for MO2. They do not themselves cover HTML5 validation attributes, the Constraint Validation API, or accessible error-feedback strategies (MO3, MO4, MO5) — those build on the structural understanding you gain here, so treat these videos as the necessary starting point rather than the full picture.

About These Videos

These videos were chosen from YouTube on October 3, 2026. Each has captions; the player turns them on. Videos on YouTube can be changed or removed — if one no longer plays, tell your instructor. If a player does not appear, use its Watch on YouTube link.