HTML5 datalist Tag

The HTML5 datalist tag provides a set of option elements. Under these, you can add a set of predefined values.  It works like an auto-complete feature, which shows the predefined options.

Here’s an example showing the options added as countries name. While searching under the input type box, it shows the available values, which we predefined as “USA”, “UK”, “India”, “Australia”, etc.

Here’s the output, we have provide autocomplete option for users. On typing a character it matches the first characters of the predefined options i.e. countries here,

HTML5 Datalist tag

HTML5 canvas tag
HTML5 details Tag
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading