0% found this document useful (0 votes)
26 views

How To Use HTML Color Codes?

This document discusses how to use HTML color codes to specify colors for various web elements. It explains that HTML color codes use the hexadecimal number system to represent intensities of red, green and blue that make up different colors. Examples are provided of common color codes to produce colors like red, green, blue, yellow and sky blue by combining different levels of red, green and blue intensities. The document encourages experimenting with HTML color codes to create many colors.

Uploaded by

waqas
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

How To Use HTML Color Codes?

This document discusses how to use HTML color codes to specify colors for various web elements. It explains that HTML color codes use the hexadecimal number system to represent intensities of red, green and blue that make up different colors. Examples are provided of common color codes to produce colors like red, green, blue, yellow and sky blue by combining different levels of red, green and blue intensities. The document encourages experimenting with HTML color codes to create many colors.

Uploaded by

waqas
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Howto use HTMLcolor codes?

With HTMLcolor codes you can set the color of web site background, color of text, cells in tables and much more. UsingHTMLcolor codesfor website backgroundcolor: <body style="background:#80BFFF">

UsingHTMLcolor codesfor settingfont/textcolor: <span style="color:#80BFFF">

UsingHTMLcolor codesfor tablebackgroundcolor: <table style="background:#80BFFF">

UsingHTMLcolor codefor link color: <a style="color:#80BFFF">

HTMLColorCodesTheory
So you are wondering "Does this weird combination of letters and numbers have any meaning?" Well the answer is "Yes" and this is how it goes:) HTMLCodesformat: 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. Meaningof 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 our heart desire;)

Examples: #FF0000- With this HTML code we tell browser to show maximum of red and no green and no blue. The result is of course pure red color: #00FF00- This HTML code shows just green and no red and blue. The result is: #0000FF- This HTML code shows just blue and no red and green. The result is: #FFFF00- Combination of red and green color gives us yellow: #CCEEFF- Take some red a bit more of green and maximum of blue to get color of sky: Have fun!

You might also like