Datalist is a HTML5 element used to specifies a list of pre defined options for an <input> element. It provides autocomplete feature on input elements, when users input data they will see a drop-down list or menu of pre defined options.
<datalist>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</datalist>
You can define one or more than one datalist element in a document.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.