More Component of HTML form
select
You may use (with nested option>) elements to build a drop-down menu of items from which a user can pick: By including the chosen attribute in an
element, that option will be shown by default.

Additionally, if you want to group options into different categories, you can nest
Definition and Application
- A drop-down list is created with the
- The
After the form is submitted, the name property is required to refer to the form data (if you omit the name attribute, no data from the drop-down list will be submitted).
- The
id
element is required to link the drop-down list to a label.
The choices in the drop-down list are defined by the