Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 65 - ClickGPT V4.0 C-5
P. 65

    Topic Flashback                                                   21 st  Century
                                                                                                    Skills  #Technology Literacy
                            Which property is used to align the text? Write its different values.

                     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

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

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

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

                     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;}

                                                                                                     More on HTML5      63

| 60 61 62 63 64 65 66 67 68 69 70 |