How to use custom font in website

How to use custom font in website

Use custom font in your website help of @font-face rule

How to use custom font in website using @font-face{}

First:
you need some font file like – .woff, .ttf etc 
Second: download your font using this sites 
After downloading that create a folder on your root folder by named font and past it.
then 

@font-face {
    font-family: myFont;
    src: url(fontname.ttf);
}

it helps you to create a custom font family name.
now your site is ready to use this

h1{
    font-family: myFont;
}

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *