Article Categories

Advertisement
Article Options
Articles to Read
Popular Articles
  1. Bold Text
  2. Simple Button
  3. Manage your MySpace Calendar
  4. The Advantages of PHP
  5. How to add Photos to MySpace
No popular articles found.
Popular Authors
  1. Adam Carmichael
  2. Joseph Lancaster
  3. Nicholas Hall
  4. Sanjib Ahmad
  5. Celeste Stewart
  6. Maneet Puri
  7. Deepaq Sharma
  8. Robby Alientjuh
  9. Anna Berk
  10. David Mytton
No popular authors found.
 »  Home  »  Web Site Design  »  Html  »  Using Color On Your Web Page
Using Color On Your Web Page
By Nicholas Hall | Published  07/27/2005 | Html | Rating:
Using Color On Your Web Page

Using Color On Your Web Page


In HTML we use Hexadecimal Color Codes [based on RGB values] or Color Names to insert colors into HTML documents.


Hexadecimal Color Codes


The Hexadecimal Color Code consists of 6 numbers and/or letters, combining to give you over 14 million possible colors, shades, hues and tints.


The 6-number-and/or-letter combinations are actually 3 pairs of values
where RR, GG, BB are the hexadecimal digits specifying the Red, Green, and Blue values of the color. This value is written as #RRGGBB. The number values range from 0 - 9; letter values range from A to F.


Here is an example of a Hexadecimal Color Code:


< FONT COLOR="#0000FF">Here is some example text I want to color< /FONT >



The above line of code will display the example text in blue like this:


Here is some example text I want to color


Color Names


Colors can also be specified by their official Color Name. Originally there were 16 Color Names,
picked as the standard 16 colors supported with the Windows VGA palette. Today there are hundreds of standard colors with official color names.


A Color Name is used in this format:


< FONT COLOR="blue">Here is some example text I want to color< /FONT >


The above line of code will display the example text in blue like this:


Here is some example text I want to color



Both methods are perfectly legitimate methods of defining HTML colors but the Hexadecimal Color Code system will give you a much wider range of possible color choices.




How would you rate the quality of this article?
1 2 3 4 5
Poor Excellent
Verification:
Enter the security code shown below:
img


Spread The Word

del.icio.us it Digg this Furl Reddit Yahoo! this!



Get updates in your E-mail - Get notified when new articles are added, and get exclusive offers from our partners!
E-mail Address:
Subscribe: UnSubscribe: