The select element creates a single-select or multi-select menu. When submitting a form, the browser submits the selected item, or collects multiple commas separated options, synthesizes them into a separate parameter list, and includes the name attribute when submitting the <select> form data to the server.
1. Basic usage:
Copy the code