Is there a limit to the length of data-* attributes in HTML?


The HTML5 specification doesn't define any limit in the length of tag names, attribute names or attribute values. Browsers could set arbitrarily high limits for performance reasons, but you should consider that the length of the data-* attributes is unlimited.

Find more solutions about: