Monday, July 13, 2009

Color values in HTML

HTML colors are defined using a hexadecimal (hex) notation for the combination of Red, Green, and Blue color values (RGB).

HTML Codes format

Each HTML code contains symbol "#" and 6 letters or numbers. These numbers are in hexadecimal numeral system. For example "FF" in hexadecimal represents number 255 in Decimal.

For example, in the the color red, the color code is FF0000, which is '255' red, '0' green, and '0' blue.

Meaning of symbols

The first two symbols in HTML color code represents the intensity of red color. 00 is the least and FF is the most intense. The third and fourth represents intensity of green and fifth and sixth represents the intensity of blue. So with combining the intensity of red, green and blue we can mix almost any color that we like.

How to use HTML color codes?

With HTML color codes you can set the color of web site background, color of text, cells in tables and much more.

See full detail: http://www.dotnetheaven.com/UploadFile/puranindia/ColorHTML06292009054429AM/ColorHTML.aspx

No comments: