htmlcss



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.


Attributes

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">
</datalist>

External Links