Tuesday, 25 August 2015

Html Color Values

Color Values In Html:

Colors are mixture of Red,Blue and Green light.

Html Colors:

In Html colors are specified by following methods
1)RGB colors
2)Color names
3)Hexadecimal colors

Hexadecimal Colors:

In all major browsers Hexadecimal color value are supported.
Hexadecimal color is specified by
#RRBBGG
Here RR is used for red,
BB is used for blue and
GG for green.
All value should be between 00 and FF.
For example,
#0000ff is used for blue because blue component is set to highest value (FF) and others to lowest value(00).

RGB Colors:

In all major browsers RGB colors value are supported.
RGB color value is specified with:
rgb i.e. red, green, blue.Each parameter defines intensity of color and can be integer b/w 0 to 225.
For Example,
The rgb (0,0,255) value rendered as blue because blue parameter is set to highest value (255) and other are to 0.

Names Of Colors:

140 standard color names are supported by all major browsers.
Example:


Colors Sorted By Using Hex Value:









No comments:

Post a Comment