@iniyan-web
Posted
Hi Abdulsamad,
You can add required fonts from google fonts.
-> In html, you can link the fonts like below:
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2? family=Montserrat:wght@700&display=swap" rel="stylesheet" />
-> In CSS, you can import fonts like below:
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
For above both cases, you can use the font added like below.
In CSS:
body { font-family: "Montserrat", sans-serif; }
Marked as helpful