HTML <datalist> tag is used in <input> field to provide autocomplete feature for words related to them. These are basically used to accomplish things put into the server. Like, if you are writing your state in any form then an autocomplete option will pop up with initial words which are retrieved with the help of datalist tag.
The datalist tag is introduced in HTML5.
The <datalist> tag must be used with an <input> element that has a 'list' attribute. The value of the 'list' attribute is bound to the datalist id.
Anonymous User
04-Aug-2021HTML <datalist> tag is used in <input> field to provide autocomplete feature for words related to them. These are basically used to accomplish things put into the server. Like, if you are writing your state in any form then an autocomplete option will pop up with initial words which are retrieved with the help of datalist tag.
The datalist tag is introduced in HTML5.
The <datalist> tag must be used with an <input> element that has a 'list' attribute. The value of the 'list' attribute is bound to the datalist id.
Let's discuss it with an example :
Hope this information will be helpful for you.
Happy Coding!