- 1

What is the use of data- attribute?

allow you to store extra information/ data in the DOM. u can write valid html with embedded private data. You can easily access data attribute by using javascript and hence a lot of libraries like knockout uses it.

4th Jan 2018, 4:26 PM
chandra mouli
chandra mouli - avatar
1 Answer
0
the data attribute links content to a machine-readable translation/value
6th Sep 2018, 7:05 AM
Ethan Morrell
Ethan Morrell - avatar