Pr.Pg Next Pg

<DATALIST>..</DATALIST> tag tutorials

  • This <DATALIST> element contains option elements that populate an input element with type="list".

  • These listed items would be considered the quick choices for the field, not a limitation of what can be entered, which would be the functionality of a select menu.

  • The <DATALIST> tag is supported in all major browsers like Chrome, Firefox, Internet Explorer 10, Opera.

  • <DATALIST> tag attributes are listed below:

 

Sr No

Attributes

Descriptions

1

ID

This attribute specify a unique id for an element in document.

2

Title

Specifies extra information about an element

 

Syntax:

<body>

<datalist>

<option>

<option>

.

.

</datalist>

</body>

 

Example: HTML program to demonstrate datalist element

Output:
Pr.Pg border                                              Next Pg