I am reading the code from Font-Awesome, which is a library that (from what I understand) overwrites parts of Bootstrap to modify some of the code.
There is a class called fa-twitter, created in Font-Awesome:
.fa-twitter:before {
content: "f099";
}
I do not understand what f is doing in this situation, and where the numbers “099” are being used. I have tried searching Font-Awesome on Github, thinking perhaps .fa-twitter is defined elsewhere, or something the numbers could be used in, but I haven’t found anything so far.
2
Answers
It’s not
f
that matters. It’s Unicode character code.f099
meansIt's not literal "f099" but Unicode value of "f099"
Table itself
Example:
It’s not ‘f’, it’s the content that’s important:
If you have code like this:
You’ll just get the email address:
[email protected]
.But if you add this in the CSS:
You’ll get
Email: [email protected]
without making any changes to the HTML.In this case, it’s adding a symbol, indicated by the code F099. In other words, the twitter bird: