HTML4 HTML5
Contains a set of suggested options (<option> tags) for input controls (usually <input>). Linked by matching the id of the <datalist> with the list attribute of the <input> field. Users can choose from the list or enter custom text.
Both opening and closing tags are required.
Attributes:
id="..." - (Required) Unique identifier used by an <input> element to bind options.
Code:
The browser will interpret this code as follows: