This isn’t Dash specific, rather it is used for general html/js development: https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
For example, I’ve used data-alt
when writing a JS script that makes it so you can toggle and image to turn into a gif and vis-a-versa: Show and Tell: Creating playable GIFS to document interactive features