Home > Article > Web Front-end > How to use HTML
HTML 221f08282418e2996498697df914ce4e Tag
##All major browsers support the 221f08282418e2996498697df914ce4e tag.Definition and Usage
The select element creates a single-select or multiple-select menu. (Recommended learning:html tutorial)
The 5a07473c87748fb1bf73f23d45547ab8 tag in the221f08282418e2996498697df914ce4e element is used to define the available options in the list.Differences between HTML 4.01 and HTML 5
HTML5 adds some new attributes.Tip
Tip: The select element is a form control that can be used to accept user input in a form.
Example
Create a select list with 4 options:<!DOCTYPE html> <html> <body> <select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="opel">Opel</option> <option value="audi">Audi</option> </select> </body> </html>
The above is the detailed content of How to use HTML