data attribute in html code example
Example 1: dataset js
for javascript :
webappData.getAttribute('data-id');
document.querySelector('#elementId').dataset.id = 'value';
for jquery :
$(element).attr('data-key', 'value');
Example 2: html data attribute
This tag contains a user-defined color attribute
This tag contains a data attribute with a link