Home > Article > Web Front-end > HTML
HTML fc86e7b705049fc9d4fccc89a2e80ee3 Tags
##Definition and usage
fc86e7b705049fc9d4fccc89a2e80ee3 Tag definition option list. Use this element in conjunction with an input element to define the possible values of the input.
datalist and its options are not displayed, it is just a list of legal input values. (Recommended learning:html tutorial)
Please use the list attribute of the input element to bind the datalist.
Browser support
All major browsers support the fc86e7b705049fc9d4fccc89a2e80ee3 tag, except Internet Explorer and Safari.Differences between HTML 4.01 and HTML 5
Thefc86e7b705049fc9d4fccc89a2e80ee3 tag is a new tag in HTML 5.Example
The following is an input element, its possible values are described in the datalist:<!DOCTYPE HTML> <html> <body> <input list="cars" /> <datalist id="cars"> <option value="BMW"> <option value="Ford"> <option value="Volvo"> </datalist> </body> </html>
The above is the detailed content of HTML