Wonder what content:"\e61e"
is in the .icon-trash:before
class' CSS. I know that they use a font to make icons but I don't know what "\e61e" is? Any explanation?
Thank you in advance.
\e61e
is technically this character: in UTF-8 encoding (the default encoding for CSS - this can be changed using @charset
). So that's the literal answer to your question.
But as Joonas mentioned in the comments, a font can map a character like this to a symbol, in this case an icon, of their choosing. So in actuality, what you're seeing is likely different than this character - likely a trash can icon.
Since it's inside of a ::before
(two colons are used because it's a pseudo element - one colon should be used for pseudo-classes), that allows it to be placed separately from the .icon-trash
element itself, usually before or after the element. This is very common for icon fonts to do.
a
toz
, is that, if for example the font doesn't load correctly, you are left with something like this:Download
( or it might render as empty, I'm not exactly sure ) and not something like:Download a
, because the browser would render it with another font instead.trash can
toe61e
, then that's what they do and no other font has anything to say about it.