It is used to specify a list of predefined options for an
<input> element, thus providing autocompletion. The user will see a drop-down with the corresponding options as they enter data.
id attribute of the
<datalist> must be equal to the
list attribute of the
<input> to which it is linked.
- Type: block
- Self-closing: No
- Semantic value: No