First go to cdnjs.com to get the library link.
in code you need one specific class named icon(or whatever) to calling icons and tag class for styling it.
.icon::before{ display:inline-block; font-style:normal; font-variant:normal; text-rendering: auto; -webkit-font-smothing:antialiased; font-family: "Font Awesome 6 Free"; font-weight: 900; /* or it can be 400 */ }
and tag's class for styling
content:"\f061";
color:white;
the \f061
is the icon character
Top comments (0)