Hello and welcome.
In this lecture I will be walking you through how to create a form with a drop down list options.
Sometimes you may have forms that you want users to make his selection from.
So I've got my sample page here and I've got a form here with some selection.
If I click on to drop down different solutions.
So how this works to create a form so to create a drop down list ifone with a drug list you begin with
a form tag to indicate you are creating a form and then you have the action attribute which specifies
what action to take when the form is submitted.
Usually this will have a back end server value because when you submit the form usually there is a back
end server process that processes the data one because we are not using the server we are submitting
the form to itself.
As got the hash tag there the we're using to do this this post so would be hastier no fire option to
create a selection Espy's select tags so you use this select act.
And in the name tag have specified in name attribute which is the name I want to call the form selection
I'll have named it fruits and then I've got various options.
The option elements define the options you want to select.
The list will normally show the first item.
Select test and then you can add several more.
So if you look at the drug plan list of virus for the first one is up also.
We will sure by default.
And then you've got oranges.
I said before and it goes to orange Yes I can sell it Manglers drug plan uncle mangas.
So you use the option to change between the selections.
So this is what's responsible.
He defined the option to select.
That's what this option tag is for.
Then he quote The brake tag on it does he create a space between that and that that's all it does under.
We've got the input tag again this input type with a value of Submit.
What that means is that the form will submit whatever date is selected it will submit it to itself because
our specified action here because some not submitted to it back end so it was some bit it took itself.
So this is how you would create a form with a drop down list in this chart.
I want you to how to create a form with a drop down list.
Use in these select tack the option tag which lets you define the options to select.
Thank you so much for watching.
Bye for now.