The HTML <datalist></datalist> element was introduced in HTML5. It defines a list of options. Use this element together with the <input /> element, to define which values the <input /> element can have. This element and its options will not be displayed, it is only a list of legal input values. It can also be used with the <option> element.


Global Attributes

See Global HTML Attributes and Standard HTML5 Attributes.

HTML example:

<input list="cars" />
<datalist id="cars">
<option value="BMW">
<option value="Ford">
<option value="Volvo">

External Links

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.