Page 54 - PortGPT_V2.1_C8_Flipbook
P. 54

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.




























                       Font Style

                  The ‘font-style’ property is mostly used to make the text ‘italic’. Other types of font styles are normal
                  and oblique.


                       Font Size
                  The ‘font-size’ property is used to increase or decrease the size of a font. Syntax to use the 'font-size'

                  and 'font-style' properties is as follows:
                      <P STYLE=“font-style:italic; font-size: font size in px;”>

                      TEXT
                      </P>

                  52    Premium Edition-VIII
   49   50   51   52   53   54   55   56   57   58   59