I want to introduce you to one last form element, and it's actually not an input with a type as we've
described before.
It's a little bit different, but the idea is still the same.
So let's add cars here and we want this to be a dropdown menu again, something that we see very often
in form fields.
However, unlike an input tag, we have to do a select tag.
It's a closing select tag as well.
And within here we can put in our options.
So the option will be we'll have a value of.
Volvo.
Now, Volker and we'll say Volvo because we want that.
Actually print it to the screen.
And again, we have to close that tag.
We'll add.
Audie.
And we'll close that tag as well and we can keep adding them.
But for now, just two is fine.
If I save this and I refresh.
We have cars.
Let's add a break here.
Just so it looks nicer.
There you go.
And here now we have a dropdown menu.
Let's say you want to extend this or you want to see what kind of properties you can put with select
the way you go about it.
As you know, we've done this before.
We type in HTML, select tag.
And actually Google gives you a nice little info page over here with attributes.
So you can see over here we can use multiple, which is specifies that a multiple options can be selected
at once.
So let's do that.
Let's.
Let's minimize this.
Perfect.
And within select, we'll put multiple.
We refresh and we can actually select multiple elements, but that doesn't look that pretty.
So I'm going to take that out and refresh.
I actually realized that we forgot one important input type, so I'm going to throw it in there as a
bonus.
And as you know, with any registration form, we want a password.
So let's add that right after the email.
We'll do.
Input type.
And yes, there's a password type that we can add and this password type will have another attribute
that's kind of cool and that is min, which is how many the minimum characters that a password needs.
So let's save that refresh and let's add a break here.
So it looks pretty.
Refresh and now the password field.
Look at that.
It acts like a password field.
All right, let's submit this form and see what happens.