- 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.
1 Answer
0
the data attribute links content to a machine-readable translation/value