HTML <datalist>
query_builder | Christopher PisaniThe HTML <datalist> element holds a set of pre-defined values to recommend a value in the input section. This leaves the user with another choice other than the values set.
<label for="ice-cream-choice">Choose a flavor:</label>
<input list="ice-cream-flavors" id="ice-cream-choice" name="ice-cream-choice" />
<datalist id="ice-cream-flavors">
<option value="Chocolate">
<option value="Coconut">
<option value="Mint">
<option value="Strawberry">
<option value="Vanilla">
</datalist>
Available Attributes
No specific attributes are assigned for this element, other than the standard global attributes.