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.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
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.
Let's discuss it with an example :
Hope this information will be helpful for you.
Happy Coding!