Page 92 - TP_Prime_v2.2_Class_6
P. 92

Fun        You can easily get hexadecimal code of any colour from color picker. Type
                          Fact!      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:
           Prime (Ver. 2.2)-VI  Text Properties
                  body{background-image:url(“background.jpg”);}






                  CSS provides text properties that are used to change the appearance of the text. The

                  text properties and their values used with the style attribute are given below:

                   Property            Value                             Description
          90
                   color               Name of the colour                Specifies the text colour to be used on
                                                                         the web page.
                   text-align          left, right, center, justify      Specifies the alignment of the text.

                                                                         Specifies  the  indentation  of  the  first
                   text-indent         length in pixels or percentage
                                                                         line of the text.

                                       underline, overline or            Specifies the text effects like underline,
                   text-decoration
                                       strikethrough                     overline or strike-through.
                                       capitalize, uppercase,            Specifies  the  transformation  of  text
                   text-transform
                                       lowercase and none                into uppercase, lowercase or title case.


                  Create an HTML5 web page by using the text properties.


                  <!DOCTYPE html>
                  <HTML>

                  <HEAD> <TITLE>Text Properties</TITLE>

                  <STYLE>

                  H1{font-family:Comic Sans MS; text-align:center;

                  text-decoration:underline;color:red}
                  </STYLE>

                  </HEAD>

                  <BODY>

                  <H1>Earth</H1>
   87   88   89   90   91   92   93   94   95   96   97