HTML datalist Tag
HTML datalist Tag
The datalist tag specifies a list of pre-defined options for an input element. It is like an autocomplete feature for the input element. The user will see a list of data when the input element gets clicked. For this tag to work, its id attribute value must be the same as the input element list attribute.
Syntax:-
Its syntax is:- < datalist >