Page 204 - Webapplication11_C11_Flipbook
P. 204

Colour                                            Colour HEX


                                                                                         #FF0000

                                                                                         #00FF00

                                                                                         #0000FF

                                                                                         #FFFF00

                                                                                         #00FFFF

                                                                                         #FF00FF

                                                                                        #C0C0C0

                                                                                         #FFFFFF

              Short Hex Codes

              Hexadecimal codes can be portrayed in the shortest form. #9A6 is #99AA66, for example. The hash sign (#) stands for
              every hexadecimal code.

              RGB Colours

              The rgb() property is used to specify the colour value in this case. Red, green, and blue are the three values of this
              attribute. This number can be a percentage or an integer between 0 and 255.
              The following shows colours using RGB values:
                                     Colour                                            Colour RGB


                                                                                        rgb (0,0,0)

                                                                                       rgb (255,0,0)

                                                                                       rgb (0,255,0)

                                                                                       rgb (0,0,255)

                                                                                      rgb (255,255,0)

                                                                                      rgb (0,255,255)

                                                                                      rgb (255,0,255)


                                                                                    rgb (192,192,192)

                                                                                    rgb (255,255,255)

              Note: All the browsers may not support rgb() property.

              Specify Color by Names

              Color names are supported by all modern browsers. HTML and CSS standards define 140 color names that can be
              used in web design and development. These color names are recognized and rendered consistently across all major
              browsers.


                202     Touchpad Web Applications-XI
   199   200   201   202   203   204   205   206   207   208   209