# How Forms Work

A form is how a page asks a question and sends the answer somewhere. You will see exactly what a form sends, the difference between GET and POST, and build text boxes with labels and buttons that do what you expect.

Updated: November 14, 2026

## [Forms and Their Data](https://www.ask-codey.com/courses/html-in-depth/topics/html-forms-and-their-data)

1. [How a Form Sends Data](https://www.ask-codey.com/lessons/html-forms-how-a-form-sends-data) (Apprentice): A form turns each answer into a name=value pair and sends the pairs to the address in its action, inside the address itself with GET or inside the request with POST.

## [Inputs, Labels and Buttons](https://www.ask-codey.com/courses/html-in-depth/topics/html-inputs-labels-and-buttons)

1. [Text Inputs and Labels](https://www.ask-codey.com/lessons/html-forms-text-inputs-and-labels) (Apprentice): A text input is a one-line box with a name for the data it sends, and a label tied to it by for and id tells everyone, screen readers included, what the box is for.
2. [Buttons](https://www.ask-codey.com/lessons/html-forms-buttons) (Apprentice): A button's type decides what it does in a form, submit, reset or nothing at all, and a button with no type sends the form, which surprises people.

## [Exercise: A Song Request Form](https://www.ask-codey.com/courses/html-in-depth/topics/exercise-html-song-request-form)

1. [Exercise: A Song Request Form](https://www.ask-codey.com/lessons/exercise-html-song-request-form) (Apprentice): Build the request form for a local radio station, with four labeled text boxes and a submit button, then send it by GET and by POST and record exactly what it sent, while the tests check every box and label.

Source: https://www.ask-codey.com/courses/html-in-depth/chapters/html-how-forms-work
