Using font properties in CSS :
Font family : this property defines a list of font family names or generic names. List of font family or generic family(font families with similar look ) names helps if one font is not displayed, the next font will be displayed depends on availability of font in user system.
Eg. P {font family : ‘Impact' }
This font displayed in my system but in other system it is displayed as default value, so if font is not available in system so browser will be display default font family. If font has more than one word then use quotation mark(' ').
Font style: this property define how to style the font. It has values italic, oblique(text is slanted to specific angle similar to italic), normal(default).
Font weight: this property increase weight of font or thickness the text. It has values normal (default), lighter, bold, bolder ( this specifies weight of font relative to default or parent value.).
We can also specify by numbers between (1-1000).
Font size: this property define size for font. We can define size by using values x-small, small, medium, large, x-large etc. Smaller and larger value are relative to default value.
We can also specify size by numerical values in pixels or in ems( it is relative to pixel i.e. 1em= 16px).
Font variant: this specifies representation of font in either small-caps( All lowercase letters converted into uppercase but this are in smaller size than parent capital words ) or normal.
Comments
Post a Comment