# Form Basics Reference This reference consolidates key educational content from MDN Web Docs covering the fundamentals of creating and structuring HTML web forms. --- ## Your First Form > **Source:** https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Your_first_form ### What Are Web Forms? Web forms are one of the main points of interaction between users and websites or applications. They allow users to enter data for server processing and storage, or to update the interface immediately on the client side. A web form consists of: - **Form controls (widgets):** text fields, dropdowns, buttons, checkboxes, radio buttons - **Additional elements:** mostly built with the `` element, plus other semantic elements - **Form labels:** paired with controls for accessibility Form controls can enforce specific formats via **form validation** and should be paired with text labels for both sighted and visually impaired users. ### Designing Your Form Best practices before writing any code: - Step back and plan your form before coding - Create a mockup to define the data you need - Keep forms simple and focused - Ask only for absolutely necessary data - Larger forms risk frustrating users and losing engagement ### The `
``` **Attributes:** | Attribute | Description | |-----------|-------------| | `action` | The URL where form data is sent when submitted | | `method` | The HTTP method for sending data (`get` or `post`) | Both attributes are optional but it is standard practice to always set them. ### The `