Page 180 - CA_165_V2.0_Flipbook
P. 180

<HTML>

                    <HEAD>
                     <TITLE>
                         Paragraph with Red Outline and offset.
                     </TITLE>

                    </HEAD>
                    <BODY>

                     <P STYLE="MARGIN: 30PX; BORDER:2PX SOLID BLACK;
                                            OUTLINE: 5PX SOLID RED;OUTLINE-OFFSET:15PX;">
                         This paragraph has red coloured outline of 5px but

                                          15px outside the border edge.
                     </P>
                    </BODY>

                  </HTML>
















                    CSS FONT
                  CSS font property is used to define the font, size, and 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>
                  <HTML>
                    <HEAD>

                     <TITLE>
                         Paragraph with multiple fonts



                   178   Touchpad Computer Applications-X
   175   176   177   178   179   180   181   182   183   184   185