Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML tag

Example

The following is a elements, describes its possible values:

<

input

list

=

"

browsers

"

<

datalist

id

=

"

browsers

"

<

option

value

=

"

Internet Explorer

"

<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari" datalist>

Try it »


Browser support

The numbers in the table indicate the first browser version number that supports the element.

Element
20.0 10.0 4.0 12.1 9.0

Tag Definition and Usage Notes

The tag specifies the list of possible options for the element.

The tag is used to provide the "autocomplete" feature for the element. The user can see a drop-down list whose options are predefined and will serve as the user's input data.

Please use the Bind the list attribute of the element to .


Differences between HTML 4.01 and HTML5

The tag is new in HTML5.


Global Attributes

The tag supports HTML Global Attributes.


Event attribute

The tag supports HTML Event Attributes.