css set property with data attribute
div::after {
content: attr(data-whatever);
}
css set property with data attribute
div::after {
content: attr(data-whatever);
}
css data attribute selector
[data-value] {
/* Attribute exists */
}
[data-value="foo"] {
/* Attribute has this exact value */
}
[data-value*="foo"] {
/* Attribute value contains this value somewhere in it */
}
[data-value~="foo"] {
/* Attribute has this value in a space-separated list somewhere */
}
[data-value^="foo"] {
/* Attribute value starts with this */
}
[data-value|="foo"] {
/* Attribute value starts with this in a dash-separated list */
}
[data-value$="foo"] {
/* Attribute value ends with this */
}
html data attribute
<a data-color="blue">
This tag contains a user-defined color attribute
</a>
<div data-link="https://github.com/k-vernooy">
This tag contains a data attribute with a link
</div>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us