Page 189 - Web Applications (803) Class 11
P. 189

A hash sign # will precede each hexadecimal code. Here are some examples of how to utilise Hexadecimal notation.
                                        Colour                                            Colour HEX

                                                                                           #000000

                                                                                           #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.











                                                                            Website Development using HTML and CSS   187
   184   185   186   187   188   189   190   191   192   193   194