The HTML datalist tag refers a list of pre-defined options for an <input>
element.
<datalist id=" frameworks">
<option value="Bulma">
<option value="Tailwind">
<option value="Bootstrap">
<option value="Foundation">
<option value="Pure">
</datalist>
To create a data list for an <input>
element assign data list id value to the list attribute of the input element.
<input name="frameworks" list="frameworks" >
General Syntax
<datalist id="frameworks">
<option value="Bulma"> </option>
</datalist>
<input name="frameworks" list="frameworks" />
Source Code
<datalist id="frameworks">
<option value="Bulma"> </option>
<option value="Tailwind"> </option>
<option value="Bootstrap"> </option>
<option value="Foundation"> </option>
<option value="Pure"> </option>
</datalist>
<label>CSS Framework</label>
<input name="frameworks" list="frameworks" />
Source Code : Output