Data attributes is there a limit on the length and how much?
2 answers
Each HTML element can contain any number of custom data attributes with any value.
Source: w3.org: 3.2.5.9 Embedding custom invisible data with data- * attributes
The length limit was discussed in a previous question linked to Mary Melody above: Is there a limit on the length of HTML attributes?
+3
source to share