...

/

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 ...