1. Home
  2. Css
  3. Attr

attr() returns an attribute's value of the selected element.

#css
.element:before{
    content: attr(data-value);
}
copy
Full Css cheatsheet