This site is 📱 accessible. Tap here to use the mobile stylesheet.
To shorten the code, it is also possible to specify all the individual font properties in one property. The
property is a shorthand property for:Note: The
and values are required. If one of the other values is missing, their default value are used.Use
to set several font properties in one declaration:p.a { font: 20px Arial, sans-serif; } p.b { font: italic small-caps bold 12px/30px Georgia, serif; }
Property | Description |
---|---|
Sets all the font properties in one declaration | |
Specifies the font family for text | |
Specifies the font size of text | |
Specifies the font style for text | |
Specifies whether or not a text should be displayed in a small-caps font | |
Specifies the weight of a font |