The <datalist> Tag in HTML 5

The <datalist> tag is used to create a combo box input field with autocomplete in an HTML form. Suggestions for autocompletion come from predefined options coded with the <option> tag.

This is an actual working example of the <datalist> tag example code below. If your browser supports the <datalist> tag, the <option value>s will be displayed after you start typing data into the input field, then it should appear something like this:

<datalist> in Opera

If your browser does not support the <datalist> tag, the options will always be displayed, even before starting to type data into the input field, possibly like this:

<datalist> in IE

... or maybe like this:

<datalist> in Firefox