<label>
Fruit name:
<input type="text" list="fruits">
</label>
<datalist id="fruits">
<option>apple</option>
<option>orange</option>
<option>grape</option>
<option>pineapple</option>
<option>lemon</option>
<option>melon</option>
<option>watermelon</option>
</datalist>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.