0

HTML datalist playground

Explore datalist as a collection of suggested values for an input. Change the control type, configure attributes, and compare native menus, range ticks, and pickers without restricting the value to the available options.

Ask AI

HTML datalist playground

Response generated with openai/gpt-5.4-nano. AI can make mistakes. Always review the result.
input type="text"

Type in the field or open its native suggestions. Values outside the list are still allowed.

Current value No value

Configured suggestions

  • HTMLMarkup language
  • CSSStyle sheets
  • JavaScriptProgramming language
  • TypeScriptTyped JavaScript
HTML
<label for="preferred-technology">Preferred technology</label>
<input
  type="text"
  id="preferred-technology"
  name="suggested-value"
  list="technology-suggestions"
  placeholder="Type or choose a technology"
  autocomplete="off"
/>

<datalist id="technology-suggestions">
  <option value="HTML" label="Markup language"></option>
  <option value="CSS" label="Style sheets"></option>
  <option value="JavaScript" label="Programming language"></option>
  <option value="TypeScript" label="Typed JavaScript"></option>
</datalist>