Edit

HTML datalist Tag

The <datalist> element specifies a set of pre-defined options for an <input> element. It can be used to provide the quick choices for an input field like an "autocomplete" feature. Its not only saves the time of a user but also reduces errors, because the user has less likelihood of making a spelling mistake. The list attribute of the input element is used to bind it together with a datalist element.

Example of Code

<input name="vehicle" list="myId"> <datalist id="myId"> <option value="volvo"> <option value="car"> <option value="bike"> </datalist> 
</body>

Output