Length 2:51Coding for Beginners: CSS Basics #79— A Shorthand for Fonts
About this video
A three-minute lesson from the Coding for Beginners series on the CSS font shorthand, which sets font-style, font-variant, font-weight, font-stretch, font-size, line-height and font-family in one declaration. It covers the required order, the slash between font-size and line-height, and why a fallback helps when a browser does not recognise font-stretch.
What you’ll learn
- Write a CSS font shorthand declaration with font-size and font-family
- Order the font properties in the shorthand and separate font-size and line-height with a slash
- Add a fallback for font-stretch in case the browser does not recognise it










