description & Usage
We use the <select> tag to create a dropdown list.
The <select> tag is often used to receive information from the user in the form tag.
To load information in the <select> tag, you need to use the id attribute.
To make related options in <select> tag, we use <option> tags.
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<select> |
Attributes
Attributes | Values | Description |
---|---|---|
autofocus |
autofocus
|
en |
disabled |
disabled
|
en |
form |
form id
|
en |
multiple |
multiple
|
en |
name |
name
|
en |
required |
required
|
en |
size |
number
|
en |
Global Attributes
The select tag supports the HTML Global Attributes.
Event Attributes
The select tag supports the HTML Event Attributes.