How do I import a font into HTML?

How do I import a font into HTML?
Answer
Create folder – “fonts”.
  1. Step 4: Add your custom font files into CSS. To add custom fonts to website use @fontface. Just add the following code into style.css. @font-face {
  2. Step5: Start working. Now the custom font is added to website and you can use it: h1 { font-family: ‘Harabara Bold’, Arial, sans-serif;
 

Tìm kiếm

Back
Top