HTML data-* Attribute. A data-* attribute on a tag attaches additional data to the div element. To create a custom attribute, replace * with a lowercase string, such as data-id , data-status , or data-location .