Home  >  Article  >  Web Front-end  >  HTML tag

HTML tag

(*-*)浩
(*-*)浩Original
2019-11-15 16:17:002662browse

HTML fc86e7b705049fc9d4fccc89a2e80ee3 Tags

HTML <datalist> tag

##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 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:HTML tagNext article:HTML tag