2.2 Compiling Font Properties
Most of the properties regarding fonts mentioned on the previous page can be compiled into one declaration using the font property. This isn't to be confused with the deprecated <font> tag that was once used for controlling fonts inside HTML pages.
When using this compiled property the order of values is: font-style; font-variant; font-weight; font-size; and font-family. For example this lengthy declaration below:
p {font-style:italic; font-weight:bold; font-size:30px; font-family:arial, sans-serif;}
Can be compiled into the following:
p {font:italic bold 30px arial, sans-serif;}
This compiling of a property can save a lot of time and effort when writing stylesheets.