Page 86 - Touchpad_Plus_V3.2_Class 7
P. 86

BACKGROUND PROPERTIES

                  The background properties are used to make changes in the background of a web page. The
                  various background properties and their values are given in the table.

                         Property                     Value                              Description

                   background-color        Name of the colour             Specifies  the  background  colour  to  be
                                                                          used on the web page
                   background-image        URL of image                   Specifies  the  image  to  be  used  in  the
                                                                          background on the web page

                   background-repeat       repeat,  repeat-x,  repeat-y,  Specifies  the  repetition  of  an  image  on
                                           (whereas,  x- horizontal &  the web page
                                           y-vertical) no repeat

                  Create an HTML5 web page by using the background properties.

                  <!DOCTYPE html>
                  <HTML>

                  <HEAD>
                  <STYLE>

                  BODY {background-image: url("D:\tile.png");
                  background-repeat:repeat-y;}
                  H1 {background-color:green;

                  text-align:center;}
                  </STYLE>

                  </HEAD>

               84       Plus (Ver. 3.2)-VII
   81   82   83   84   85   86   87   88   89   90   91