Whenever you see a reference to a "data attribute", it does not literally mean an attribute called data
.
A data attribute, more fully known as a custom data attribute, is an attribute, of any name and value you choose, whose name is prefixed with data-
. For example, data-color
or data-category
. Sometimes they're written as "data-*
attributes" to make it clearer that the data-
portion is a prefix and not the entire attribute name.