"."/> ".">
Home >Web Front-end >Front-end Q&A >What does datalist of html5 mean?
html5's datalist means "option list". The datalist tag is used to specify the possible option list of the input element. As the predefined value of the input element, the syntax is "".
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
What does the datalist of html5 mean?
The datalist tag in html5 specifies a list of possible options for the element.
The
Please use the list attribute of the element to bind the
The example is as follows:
<html> <head> <meta charset="utf-8"> <title>123</title> </head> <body> <form action="demo-form.php" method="get"> <input list="browsers" name="browser"> <datalist id="browsers"> <option value="Internet Explorer"> <option value="Firefox"> <option value="Chrome"> <option value="Opera"> <option value="Safari"> </datalist> <input type="submit"> </form> <p><strong>注意:</strong> Internet Explorer 9(更早 IE 版本),Safari 不支持 datalist 标签。</p> </body> </html>
Output result:
##Recommended tutorial: "html video tutorial 》
The above is the detailed content of What does datalist of html5 mean?. For more information, please follow other related articles on the PHP Chinese website!