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

This will set the text colour in red.





                                                                               Text color is Red due to
                                                                               <BODY Text = “Red”>





















                 BACKGROUND Attribute
                 This attribute is used to set a picture as the background of a web page. Background image can be textual
                 or image.

                 BACKGROUND attribute can be used when some organizations want their logo in the background of the
                 web pages. Background can be designed by using any picture that is available in .bmp, .gif  or .jpeg file
                 format. Syntax to use the BACKGROUND attribute is as follows:

                   <BODY BACKGROUND = “FILE NAME with its complete path”>
                 Here, ‘FILE NAME’ is the name of image file which has to be used as the background. The image file
                 should be stored in the same folder where HTML file is stored else the user needs to specify the complete
                 path or the location of that image file. For example:

                   <BODY BACKGROUND = “C:\Pond.jpg”>





























                 Here, accordingly an image file ‘Pond.jpg’ is stored in ‘C Drive’.



                                                                                         Introduction to HTML    55
   52   53   54   55   56   57   58   59   60   61   62