Note: For reading the values of these attributes in JavaScript, you could use getAttribute() with their full HTML name(i.e, data-custom-attr) but, the standard defines a simpler way: using a dataset property.
Tapas Adhikary You can, of course, access any HTML attribute with getAttribute(), however the 'dataset' property is what makes 'data-*' attributes special and much more convenient to use. Thanks for updating the article.