Last updated: 2026-09-12
<datalist>The DATALIST Element
Offers a list of suggested values for an input (with a drop-down hint) while still allowing free typing; pair with input's list attribute.
| Category | Forms |
|---|---|
| Content Model | Flow content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </datalist> tag |
| Status | Standard |
📝 Syntax
<input list="browsers">
<datalist id="browsers">
<option value="Chrome">
<option value="Firefox">
</datalist>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <datalist> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: datalist is invisible itself; referenced via input's list attribute; hint styling varies by browser.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.