<datalist>

This article is in need of an editorial review.

Summary

The HTML <datalist> Element contains a set of <option> elements that represent the possible options for the value of other controls.

Attributes

This element has no other attributes than the global attributes, common to all elements.

Examples

<div>Choose a browser from this list:</div>
<input list="browsers" />
<datalist id="browsers">
  <option value="Chrome">
  <option value="Firefox">
  <option value="Internet Explorer">
  <option value="Opera">
  <option value="Safari">
</datalist>

Specifications

Specification Status Comment
WHATWG HTML Living Standard Living Standard  
HTML5 Candidate Recommendation  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 20 4.0 (2.0) 10 9.5 Not supported
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 33 4.0 (2.0) Not supported 10 Not supported

See also

Document Tags and Contributors

Last updated by: Dbs,