Question: what is the difference between select and datalist in html?
Answer: The datalist element provides suggestions whereas the select element asks the user to select a value from the available list. In case of datalist, user has the freedom to enter values that is not in the list. But select does not allow the user to enter a value outside the list.