This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

list

Summary

The list attribute refers to a <datalist> element specifying possible values to suggest for an input element.

Applies to [HTMLInputElement](/html/elements/input)
This attribute allows for the developer to specify autofill values for an input element for the browser to present to a user.

This can allow for things such as autocompletion, or faster site search. It would be possible to create an autocomplete such as on this site’s search with a server side populated datalist.

See also

Related articles

HTML

Related pages

Attributions