Page 74 - TP-Play_V-2.0_Book-7
P. 74

Property                   Value                               Description

                                                                Specifies  the  text  colour  to  be  used  on
             color               Name of the colour
                                                                the web page.


             text-align          left, right, center, justify   Specifies the alignment of the text.


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



                                 underline,  over  line or  Specifies the text effects like underline, over
             text-decoration
                                 strike-through                 line or strike-through.



                                 capitalize, uppercase, lower- Specifies  the  transformation  of  text  into
             text-transform
                                 case and none                  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>

            <P style="font-family:Times New Roman; text-transform:uppercase">
            Earth is the third planet from the Sun. It is the only planet that

            is known to sustain life form. About 70% of the Earth's surface ic
            covered with water, rest of the earth surface is home to all the land
            dwelling animals.</P>

            <hr Size="10" width="80%" color="grey">

            <P style="font-family:Times New Roman; text-transform:lowercase">



             74       Play (Ver. 2.0)-VII
   69   70   71   72   73   74   75   76   77   78   79