The @font-face Selector
@font-face {
font-family: '...';
src: url('#') format('...');
font-weight: ;
font-style: ;
}
To include an external font, you first must tell the browser to load the font and what to refer to it as. To do this, use the @font-face
rule in your CSS.
This rule is formatted like other CSS selectors, but instead of being used to alter HTML elements, it is used to load in data for CSS to use.
- Previous
- Next