📝

HTML Forms

Master HTML forms from the ground up. Build text inputs, dropdowns, checkboxes, radio buttons, and learn validation, styling, accessibility, and HTTP methods.

Prerequisites:📦Tag Builder
1

Why Forms Exist

Discover why HTML forms are the backbone of every interactive website and how they let users communicate with the web.

2

The Form Element

Learn how the <form> tag works as a container, and understand the action and method attributes that control where and how data is sent.

3

Text Inputs and Labels

Master the <input> element, the <label> element, and learn why wiring them together is essential for usability and accessibility.

4

Input Types

Discover the many faces of the <input> element — from email and telephone to date pickers, color choosers, and file uploads.

5

Checkboxes and Radio Buttons

Learn when to use checkboxes (pick many) vs radio buttons (pick one), how grouping works, and why labels are even more critical for these small targets.

6

Select Dropdowns and Datalists

Learn how to create dropdown menus with <select>, organize options with <optgroup>, and build autocomplete fields with <datalist>.

7

Textarea and Other Form Elements

Learn about <textarea> for multi-line text, button types, fieldset/legend for grouping, and lesser-known elements like <output>, <meter>, and <progress>.

8

HTML5 Form Validation

Learn how to validate form data using built-in HTML attributes — required, minlength, pattern, and more — plus CSS pseudo-classes for styling valid/invalid fields.

9

Styling Forms with CSS

Learn how to override default browser form styles, create polished inputs, style buttons with hover/active/disabled states, and use accent-color for checkboxes.

10

HTTP Methods Explained

Understand what really happens when a form is submitted — HTTP requests, GET query strings, POST request bodies, and form encoding types.

11

Form Accessibility

Make your forms usable by everyone — proper grouping with fieldset/legend, ARIA attributes for help text, error handling, and keyboard navigation.

12

Capstone: Multi-Section Registration Form

Put everything together! Build a complete, multi-section, validated, accessible, and styled registration form using all the skills you've learned.

13

Codelab: Build a Contact Form

Follow along step-by-step to build a complete, styled, accessible contact form from scratch in your code editor and browser.

14

Codelab: Build a Survey Form

Build a complete survey form from scratch with multiple question types, datalist autocomplete, grouped fieldsets, validation, and responsive CSS styling.