Custom Data Attributes in HTML 5

By Deane Barker on July 13, 2008

HTML 5 data- Attributes: HTML and XML begin to merge.

Simply, the specification for custom data attributes states that any attribute that starts with “data-” will be treated as a storage area for private data (private in the sense that the end user can’t see it – it doesn’t affect layout or presentation).

So, you could have: