The datalist tag is an HTML tag that lets the user auto-complete the form based on the predefined options. It presents the users with predefined options that they can choose from. An example of this can be as below:
<label>
Enter your favorite Bollywood Actor: Press any character<br />
<input type=”text” id=”favBolActor” list=”BolActors”>
<datalist id=”BolActor”>
<option value=”Shahrukh Khan”>
<option value=”Akshay Kumar”>
<option value=”Aamir Khan”>
<option value=”Saif Ali Khan”>
<option value=”Ranbir Kapoor”>
<option value=”Ranveer Singh”>
<option value=”Sanjay Dutt”>
<option value=”Hrithik Roshan”>
<option value=”Varun Dhawan”>
<option value=”Ajay Devgan”>
</datalist>
</label>