Sometimes, we want to apply a single font to an entire website with CSS.
In this article, we’ll look at how to apply a single font to an entire website with CSS.
How to apply a single font to an entire website with CSS?
To apply a single font to an entire website with CSS, we set the font-family property on the body element.
For instance, we write
body {
font-family: Algerian;
}
to set the font-family property to the Algerian font on the body element to apply the font to the whole page.
Conclusion
To apply a single font to an entire website with CSS, we set the font-family property on the body element.