Is there a way I can add icons from font awesome and google fonts icons. I tried searching, but all of them require me to download it.
Hi @Kasakapen ,
It is not required to download but you need to install font-awesome packages to use them. you can install them using npm
or yarn
.
npm install --save @fortawesome/fontawesome-free
or
yarn add @fortawesome/fontawesome-free
do I put the code in the head section of html?
If you want to put the code on HTML then you can use cdns for that.
Your code should be like:
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>
<body>
<!--Body Conent -->
</body>
</html>
This doesn’t require any downloads
1 Like
Hi @Kasakapen ,
Yes, If you are using font-awesome icons with html. you con do something like that as suggested by @sowg
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.