css set data attribute code example
Example 1: css set property with data attribute
div::after {
content: attr(data-whatever);
}
Example 2: data attribute html
<!-- data-* attritubes can be used on any html element -->
<div data-my-custom-data="true"></div>