HTML list Attribute Demo

The value given to the list attribute should be the id of a datalist element located in the same document. The datalist provides a list of predefined values to suggest to the user for this input. Any values in the list that are not compatible with the type are not included in the suggested options. The values provided are suggestions, not requirements: users can select from this predefined list or provide a different value. It is valid on text, search, url, tel, email, date, month, week, time, datetime-local, number, range, and color. Per the specifications, the list attribute is not supported by the hidden, password, checkbox, radio, file, or any of the button types.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#list

Text field

Search field

URL field

Tel field

Email field

Date field

Month field

Week field

Time field

Datetime-local field

Number field

Range field

Color field