Easy Tutorial
❮ Canvas Linecap Tag Label ❯

HTML <input> list Attribute

HTML <input> Tag

Example

An <input> element with predefined values in a <datalist>:


Browser Support

Internet Explorer 10, Firefox, Opera, and Chrome support the list attribute.

Note: Safari or Internet Explorer 9 and earlier versions do not support the list attribute of the <input> tag.


Definition and Usage

The list attribute refers to the <datalist> element, which contains predefined options for the <input> element.


Differences Between HTML 4.01 and HTML5

The list attribute is new in HTML5.


Syntax

Attribute Values

Value Description
datalist_id Specifies the id of the datalist bound to the <input> element.

❮ Canvas Linecap Tag Label ❯