HTML5 Datalist

HTML5 Datalist Tag

The <datalist> tag refers a list of pre-defined options for an <input> element.

Statement


To create a data list for an <input> element assign data list id value to the list attribute of input element.

Statement


General Syntax

Try it now

Source Code

Try it now

Source Code : Output