Article Categories
Advertisement
Article Options
Popular Articles
  1. Manage your MySpace Calendar
  2. Carbon Fibre
  3. How to add Photos to MySpace
  4. Animated Mask Using Flash
  5. The Advantages of PHP
No popular articles found.
Popular Authors
  1. Joseph Lancaster
  2. Nicholas Hall
  3. Adam Carmichael
  4. Celeste Stewart
  5. Deepaq Sharma
  6. Katerina Mitrou
  7. Arnab Ghosh
  8. Gregg Hall
  9. Robby Alientjuh
  10. Kevin Yank
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
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: