In this section of the course we are going to be creating an input form using HTML. A form is used to gather input from your user. Forms are the most common method of data collection from website visitors. The data that is inputted into the form can also be stored into a database or submitted to an email address.
Keep in mind that in order for a form to work and transmit data, we need to use a programming language that communicates with our web server. Later in this course we will be exploring PHP and working more with data processing. For now, in the HTML section of this course, we will only be creating the front end of the form - what the user sees through their web browser.
Let's take a look at an example of a basic contact form on the web:
On this form, the user is able to submit an inquiry directly to the website support staff by completing the required fields (Name, Email, Subject, and Message).
If we try to submit the form without filling in any information, we can see a number of errors appear. This is known as form validation.
Let's take a look at a diagram that illustrates how a form is processed once the user has clicked the send button.
As a reminder we will be working with form data processing later in this course.
For now we will begin with developing just the front end of the form using HTML.