CSS Font Property


The font property is used as shorthand to specify a number of other font properties.

The Font CSS gives you great control over the way your text is displayed. You can change the text size, color, style, and more.

PropertyDescription
font-sizeThe font-size property is used to increase or decrease the size of a font.
font-familyThe font-family property is used to change the face of a font.
font-StyleThe font-style property is used to make a font italic or oblique.
font-variantThe font-variant property is used to create a small-caps effect.
font-weightThe font-weight property is used to increase or decrease how bold or light a font appears.
font-stretchThe font-stretch CSS property selects a normal, condensed, or expanded face from a font
fontThe font property is used as shorthand to specify a number of other font properties

Example Font

<p style="font:italic small-caps bold 15px georgia";>Welcome to CSS Tutorial</p>
Output

Welcome to CSS Tutorial


Share this article on