Data Attribute is declared as a part of your HTML element and will act as a variable that holds string type data.

This is a sample of how to use data attribute.


This is the example of getting the data-info value using JQuery


Many JQuery and JavaScript library are using data attribute to act as their parameters.