HTML <datalist> Tag

The <datalist> element allows you to provide a list of predefined options that could be used as options on another control. The above example demonstrates this by providing an "autocomplete" feature on an input control.

You can also provide support for browsers that don't support the <datalist> element by nesting the <option> tags inside <select> tags.

Example -