HTML <datalist> Tag
The datalist tag defines a set of predefined choices for an input element.
The <datalist>
tag is used to offer "autocomplete" functionality to <input>
components. As they enter data, users will see a drop-down list of pre-defined alternatives.
The id attribute of the <datalist>
element must be the same as the list attribute of the input element (this binds them together).
Syntax
Supported Browsers
Element | Chrome | Firefox | Safari | Edge / IE | Opera |
---|---|---|---|---|---|
<datalist> | 20.0 | 4.0 | 12.1 | 10.0 | 9.5 |