CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS @font face Rule

CSS @font-face Rule



In @font-face, we first define a name for the font and then point to the font file. To use the font in the HTML element, we need to refer to the name of the font through the font-family property.




Its syntax is:- 
@font-face {


Further Explanation:-


Font descriptor Description
font-family Required. Defines the name of the font.
src Required. Defines the URL where the font should be downloaded from
font-stretch Optional. Defines how the font should be stretched.
font-style Optional. Defines how the font should be styled.
font-weight Optional. Defines the boldness of the font.
unicode-range Optional. Defines the range of unicode characters the font supports.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS