<!DOCTYPE html>
<html>
<body>

<input id="fruit" list="fruits" type="text"/>
<datalist id="fruits">
    <option>Apple</option>
    <option>Orange</option>
    <option>Pear</option>
</datalist>

</body>
</html>
