The last input field we want to create is the text area
the text area is similar to the input field but it allows much more text to be input and across multiple
lines so let's take a look at an example
you'll notice if I copy and paste this over and over again the text area allows for school bars and
we can also expanded and contracted.
This makes it much more convenient for the user when it comes to inputting large amounts of text
so before we create a text field we'll start with our label which is additional comments.
And in the call them next to it
we'll start we'll create we'll input the text area
so to do that we'll create a text area tag
and we'll explain what the attributes mean in just a moment
the open text area tag does require a closing text area tag
so as you can see
it includes the name attribute just like all the other fields we created.
It also allows you to specify the width of the text area which is represented by calls and the height
specified by the number of rows.
In this case our text area will be five rows in height beyond five rows of text.
The scroll bars will be enabled automatically
so let's save our file and take a look.
So this is our text area here
and you can see that the scroll bars do activate
the last part of this form that we want to create is the submit and reset button the submit button will
submit the form data to our send a dot BHP script or whichever file you've specified in the action attribute
of your form the reset button will empty the data input it into the fields
and so that's how that works.
So let's go ahead and create those two buttons and we want to insert this in the second column on the
ninth row our last row
so the button is an input.
We have to specify that the type which is a submit button
will give it a name.
We'll just call it submit
and devalue
and then we just closed the input and we'll do the same for the reset button
which just capitalize the first letter so let's go ahead and save the file and take a look at the entire
form.
So that's the entire form we'll know.
You see we have the two text inputs our select menus are working and we're checkboxes
and the radio buttons text area and let's just test our reset button.
So that works.
Now the submit button will not work because we have not created this send it dot BHP file it that's
that's the file that all this data will be transmitted to and then that BHP file instructs our web server
on what to do with the data.
Is it going to be sent to a database to an email address or some other form of processing.
We'll learn how to do that in the p p part of this course.