Page 126 - CA 165 ver 1.0 Class 10
P. 126

CSS FONT

                  CSS font property is used to define the font, size and the style of the text. Some of the commonly used
                  font properties are font-family, font-style, font-size, etc.

                  Font Family

                  The font-family property is used to change the face of the font. The font family property works on the
                  principle of ‘fallback’ system i.e., if the web browser is not compatible with the first font, it tries the next
                  font, and so on. If the name of a font family is more than one word, it must be in quotation marks like
                  “Times New Roman”. More than one font family can be specified in a comma-separated list. Syntax to use
                  the font-family property is as follows:

                    <P STYLE=“FONT-FAMILY:Font1, Font2,………,FontN;”>
                    TEXT

                     </P>





                                                                                                 Serif is the
                                                                                               default font of
                                                                                                 web page.



















                   124   Touchpad Computer Applications-X
   121   122   123   124   125   126   127   128   129   130   131