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

You can also use the 6 digits hexadecimal code in place of colour name. For example, the hexadecimal
              code #000000 represents the black colour and #FFFFFF represents the white colour.  For example:

              body{background-color: #000000;}


                                                              Hintbot


                                   You can easily get hexadecimal code of any colour from color picker.
                              Type color picker in google and select any colour to get the hexadecimal code.



              You can also set an image as the background of a web page by using the background-image property
              of CSS in the following manner:

              body{background-image:url("background.jpg");}

              EDITING AN EXISTING HTML DOCUMENT


              Follow these steps to edit an HTML document:


                     1   Right-click  on the
                         file icon.


                     2   Click on the Open
                         with option.


                                                                                                              3
                                                                                          Click on Notepad.







              This will open your HTML document in Notepad so that you can make changes to the file. After making
              the required changes, you need to save the file by pressing the Ctrl+S keys.

              If your web page is already opened in a web browser, you need to press the F5 key to see the changes
              you have made.



                          Quick Quiz

                1.  Which of the following is a container tag in HTML5?

                           a. <P> tag                              b. <BR> tag
                2.   Which part of an HTML5 document defines the title of the web page?

                           a. Head                                 b. Body
                3.   There are                types of CSS.

                           a. two                                  b. three






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