data- attribute
Also written: data-name, dataset
A custom HTML attribute for storing extra data on an element, which a script reads. The shop's Add to cart buttons store the product name in data-name.
Also written: data-name, dataset
A custom HTML attribute for storing extra data on an element, which a script reads. The shop's Add to cart buttons store the product name in data-name.