I use them all the time in Hype since version 4.x has allowed access to them and plead for a dedicated view for them. Here is a great article with two excerpts to get you into the mood to learn about data-attributes …
HTML elements can have attributes on them that are used for anything from accessibility information to stylistic control.
What is discouraged is making up your own attributes, or repurposing existing attributes for unrelated functionality. In the following ex
One of the things I like about articles done in this style is there are plenty examples demonstrating their use. Often “informative” posts have just one example that doesn’t accurately convey the topic for beginners.
Imagine learning English with just one example of the usage of a word. For instance…
“Time flies like an arrow”
…would leave the new practitioner clueless when they came across this usage:
“Fruit flies like a banana”.