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 :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.