...

/

Font Styling and Web Fonts

Font Styling and Web Fonts

Learn to use typefaces in CSS and load new typefaces into the browser.

There are many CSS properties we can use on text-based elements to give the text different stylizations.

Changing font styles

You can change the font of your text using the font-family property.

Implementation of different fonts

If a font name contains spaces, then it must be wrapped in quotation marks (e.g. "Times New Roman") in order to be rendered properly.

Web-safe fonts

When a browser loads a web page, it will apply the font specified in font-family only if the font is loaded on the system. What do we mean by this? Running the same web page on a Windows desktop, an Android mobile device, or a Mac OS X laptop ...