<datalist>

noun

say it: “DAY-tuh-list” /ˈdeɪtəlɪst/ or “DAT-uh-list” /ˈdætəlɪst/

The HTML element that holds a list of suggested answers for a typed field, while still letting the visitor type anything.

What is <datalist>?

<datalist> — The element that supplies suggested options to an associated input without limiting entry to those options.

<label for="city">City</label>
<input id="city" name="city" list="cities">
<datalist id="cities">
  <option value="Denver">
  <option value="Boulder">
</datalist>

In a sentence

  • “As I typed Bea, the datalist suggested The Beatles and Beach Boys.”
  • “The datalist offers popular flavors, but a customer can still type their own.”

Level: Freelancer · More HTML terms at this level

Updated