Page 67 - CA 165 ver 1.0 Class 10
P. 67

COLOR Attribute
                 This attribute is used to set the colour of the horizontal (line) rule. Syntax to use the COLOR attribute of
                 the <HR> tag is as follows:

                   <HR COLOR=“COLOUR NAME”>
                 For example:
                   <HR COLOR=“BLUE”>
                                                                         Horizontal Rule (HR) displays as:
                                                                                  Color - Blue
                                                                                   Noshade
                   <HTML>
                   <HEAD>                                                          Size - 15
                   <TITLE>  Using HR Tag with its Attributes </TITLE>            Width - 45%
                   </HEAD>                                                      Alignment - Left
                   <BODY TEXT =”Red”>
                   ORANGE EDUCATION
                   <HR SIZE = 15  WIDTH= “45%”ALIGN =“Le‘” COLOR =”BLUE”>
                   A Complete I.T. Reference Book
                   </BODY>
                   </HTML>                                     ORANGE EDUCATION






                                                Lab Assignment ‘n Activity                          Subject Enrichment



                    Complete the following activities and tick on the circle.
                      Write HTML codes to obtain the given output (web page)

                          Heading should be in Center.
                          Use appropriate width, size and alignment of the Horizontal rule at the desired place.





                                                            COMPUTER

                                          Computer is an electronic device with the ability to accept data, process it to produce
                                                                                    -
                                          meaningful information and to store for future use. It does numerical and non numerical
                                          operationsataveryhighspeedwith100%accuracy.
                                                           FRIENDSHIP
                                          A friendship is one of the best gift for human being. Its really tough to have a good friend
                                                           -
                                          in the life. Relatives and blood bound where we do not have options but we can choose
                                          friends.Sochoosethebestpersonforlifetolivewithjoy.
                      Write HTML codes to design a web page with the following details:

                          Title of the page should be ‘Adventure’.
                          Heading should be aligned in Center.
                          Contents should be in small size and in Silver colour.

                          Heading and Contents should be separated by a horizontal rule with an appropriate
                           width and size.
                          Add another horizontal rule at the end of the contents.



                                                                                         Introduction to HTML    65
   62   63   64   65   66   67   68   69   70   71   72