Home>Article>Web Front-end> How to use html datalist tag

How to use html datalist tag

藏色散人
藏色散人 Original
2019-05-26 14:29:25 3692browse

html The datalist tag is used to define a list of options and specifies a list of possible options for the input element. All major browsers support thetag, except Internet Explorer and Safari. Thetag is a new tag in HTML5.

How to use html datalist tag

What does the datalist tag mean? How to use html datalist tag?

Function: Define the option list and specify the possible option list for the input element.

Note:

Please use this element in conjunction with the input element to define the possible values of the input. The datalist and its options are not displayed, it is just a list of valid input values. Please use the list attribute of the input element to bind the datalist.

Note: Thetag is supported by all major browsers except Internet Explorer and Safari. Thetag is new in HTML 5.

html datalist tag usage example

    Title 

Effect:

How to use html datalist tag

The above is the detailed content of How to use html datalist tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to use html command tag Next article:How to use html command tag