Skip to main content

HTML Forms

6 lessonsAbout 36 minutesIntermediate

This part of the HTML Tutorial runs from HTML Forms Overview through to HTML Form Validation. There are 6 lessons here, and working through them takes about 36 minutes at a steady pace.

It follows on from HTML Images and Media, so finish that first if you have not already — the examples below assume you are comfortable with it.

Each lesson below says what it covers before you open it. Read them in order the first time; afterwards this page works as a index you can jump back into when you need to check one thing.

  1. 1HTML Forms OverviewHTML forms are essential for collecting user input on a website. They allow users to enter information like names, email addresses, passwords, or upload...
  2. 2HTML Form ElementsHTML form elements are the building blocks that make up a form. These elements allow users to interact with a webpage — typing text, selecting options,...
  3. 3HTML Input TypesThe <input> element is one of the most versatile and commonly used elements in HTML forms. It can represent different types of input fields depending on the...
  4. 4HTML Input AttributesHTML <input> elements support a wide range of attributes that define their behavior, appearance, and interaction with users. These attributes help control...
  5. 5HTML Form AttributesHTML <form> elements contain several attributes that define how form data is collected, processed, and submitted. These attributes control important aspects...
  6. 6HTML Form ValidationForm validation ensures that the data entered by a user meets the expected format and requirements before being submitted to the server. It helps maintain...