I was looking through some code. I came across:
.social-navigation a[href*="tumblr.com"]:before {
content: "\f214";
}
This code is used to display social media icons if a link contains tumblr.com in its url. However I have never seen the asterisk used in this way before in css. The only functionality I am aware an asterisk has in css, is the one of universal selector. This seems to do something else akin to a regular expression like: /.*tumblr\.com.*/g
.
- Can someone explain the functionality of the asterisk used in this example in more detail?
PS: A reference to documentation or a formal name of this functionality would be great. Then I can read up a little more on it and/or try to find more information on the internet.