Font-Family

This property indicates the typeface applied for display of text. More than one typeface is given so that the first one which is installed on the user system will be the one to be used for display of the text on the web page. Even though any of the fonts installed on the user’s operating system can be used but usually the set of web safe fonts are used. The web safe fonts are also called as generic font. Its usage is given as
body {
font-family: arial, helvetica, sans-serif; }
As in the example from all the given typefaces of arial, helvetica, sans-serif , out of which the first installed font is applied to text in the body element. Two important points to remember about their usage is
  • Names of each font are case insensitive
  • Font name which has spaces must be enclosed with quotation marks like “Times New Roman”

Go To- Certified CSS3 Developer Tutorial

Get industry recognized certification – Contact us

Menu