Skip to content
HTML.ONE
Home HTML Elements

HTML <datalist> Element

Provides suggested values for a compatible input without necessarily restricting its value.

Example

<label>Colour <input list="colours"></label><datalist id="colours"><option value="Blue"></datalist>

Further reference

HTML Living Standard

Live preview