When I first use CSS, I thought it is impossible to get the properties of an element. However, I found this code Here, it shows that I can get the properties of elements by using CSS.
For example, if I want to get the title of <abbr>
element, I can just use this code:
abbr::before{
content:attr(title);
color:red
}
<abbr title="the title">
Content Test
</abbr>
attr(title)
give me the title of <abbr>
In that case, I want to ask if there is a way to get the content of the element.
For example, I want to get Content Test
in the code in my example by just using CSS.
How could I finish that?