Page 174 - Webapplication11_C11_Flipbook
P. 174

2.7 COLOR CODING
              Coding  of  colour  can  be  done  as  a  combination  of  Red(RR),  Green  (GG)  and  Blue  (BB)  colour.  These  coding  are
              represented in ordered sequence of RR, GG and BB. For example: If we select a colour as Red, then its red value is full,
              green value is 00 (i.e. Nil) and blue is also 00 (Nil).
              Red=FF(Full)

              Green=00 (Nil)                                              <BODY BGCOLOR     =“#FF0000            ”>
              Blue=00 (Nil)
                                                                       RR (Red) = FF (Full)
              The resulting colour is red, so the red colour has the string
              (value) “#Ff0000”.                                    GG (Green) = 00 (Empty)
              Similarly,  if  we  select  a  color  blue,  then  we  will  assign   BB (Blue) = 00 (Empty)
              colour value as:
              Red = 00 (Nil)

              Green=00 (Nil)
              Blue = FF (Full)
              The table given below shows codes of different colours and their corresponding hexadecimal RGB values:

                     COLOUR Name               HEX RGB Value             COLOUR Name               HEX RGB Value

               Aqua                              # 00FFFF          Black                             # 000000

               Blue                              # 0000FF          Grey                              # 808080

               Green                             # 008000          Lime                               # 00FF00

               Maroon                            # 800000          Purple                            # 800080

               Red                               # FF0000          Silver                            # C0C0C0
               White                              # FFFFFF         Yellow                             # FFFF00


                 2.8 THE <DIV> TAG

              In an HTML document, a division or section is defined by the <div> tag. The <div> tag is a block-level element used to
              group other elements to apply styles or layout properties to them collectively. Block-level elements take up the full
              width available and start on a new line. We can use the CSS properties to apply styles. For example:

              <html>

              <body>
              <h1>Welcome</h1>
              <div style="border: 5px outset blue; background-color: pink; text-align: center;">
              <h2> Hello! I am Sammy. I study in class 12. </h2>
              <p> I love to eat pizza and burgers! </p>

              </div>
              I like to get up early in the morning and go for a walk.
              </body>
              </html>




                172     Touchpad Web Applications-XI
   169   170   171   172   173   174   175   176   177   178   179