Coding for Beginners: CSS Basics #61— How to Use @fontface

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerDesign Engineering3 min

About this video

A beginner CSS lesson on the @font-face rule, which loads a custom web font from remote font files. It covers the font-family name, the source URLs and format declarations, and using the font in a font stack with fallbacks.

What you’ll learn

  • Write an @font-face rule that names a custom font and points to its files
  • Declare font file formats so the font loads across different browsers
  • Apply a loaded custom font in a font-family stack with fallbacks