Is there any reason to use data-attribute for custom data attributes on html5 elements? I remember using custom data attributes without using data prefix and I think that did work alright.
Can someone please correct me.
Is there any reason to use data-attribute for custom data attributes on html5 elements? I remember using custom data attributes without using data prefix and I think that did work alright.
Can someone please correct me.
Abridged version of the answer by @Lachlan Hunt to the duplicate question: