Skip to content
← Back to Community
Fonts in HTML?
Profile icon
HezekiahHernand

how do you change fonts on HTML

Answered by hyperupcall [earned 5 cycles]
View Answer
Voters
Profile icon
SavannahWillia2
Profile icon
HezekiahHernand
Comments
hotnewtop
Profile icon
hyperupcall

Hey!
If you want to change a font, you can go over to Google Fonts and grab some fonts. After selecting one, you'll be giving a <link/> tag like this:

<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">

You would want to put that in the <head></head> part of your document.

Now, in your CSS, you can apply the font to a particular element

h1, h2, h3, p { font-family: 'Open Sans', sans-serif; }

Hopefully I was able to help :)