HTML <datalist> Tag

<p>Type a fruit name beginning with "A" or "B":</p>
<input name="myFruit" list="fruit" maxlength="50">
<datalist id="fruit">
<option value="Acai">
<option value="Apple">
<option value="Apricot">
<option value="Bananas">
<option value="Blueberries">
<option value="Boysenberries">
<option value="Bread fruit">

The <datalist> element allows you to provide a list of predefined options that could be used as options on another control. The above example demonstrates this by providing an "autocomplete" feature on an input control.

You can also provide support for browsers that don't support the <datalist> element by nesting the <option> tags inside <select> tags.