Simple Example of Setting & Reading Data Attributes

Data attributes are part of HTML5 and also happen to be super handy in a ton of everyday dev situations.
This is a easy to understand example of how they work. I built the JSFiddle for you to enjoy below.

Leave a Reply

Your email address will not be published. Required fields are marked *