An <input> element with pre-defined values in a <datalist>:
![]()
The list attribute is supported in Internet Explorer 10, Firefox, Opera, and Chrome.
Note: The list attribute of the <input> tag is not supported in Internet Explorer 9 and earlier versions, or in Safari.
The list attribute refers to a <datalist> element that contains pre-defined options for an <input> element.
The list attribute is new in HTML5.
| Value | Description |
|---|---|
| datalist_id | Specifies the id of the datalist to bind the <input> element to |
HTML <input> tag
Your message has been sent to W3Schools.