HTML color codes and names?

HOW TO APPLY THESE CODES AND COLORS

Public Comments

  1. HTML color codes are hexadecimal triplets representing the colors red, green, and blue. For example, in the below example of the color red, you can notice the color code is FF0000, which is '255' red, '0' green, and '0' blue. To change the font color, add the below source code: <font color="#FF0000">Making the text color red</font> In addition, with new browsers you now have the capability of changing the color by using the name, such as: <font color="red">Making the text color red</font> Other ways to use these codes is within your BODY statement. This allows you to change the complete page: <BODY TEXT="#000000" LINK="red" VLINK="blue" BGCOLOR="#ffffff" > TEXT="000000" When used will display all text on page as black. LINK="#1F00FF" When used will change all links to red. VLINK="blue" When used will change all viewed links to blue. BGCOLOR="#ffffff" When used will display the page with a white background. MAJOR HEXADECIMAL COLOR CODES Color Color Code Red #FF0000 Turquoise #00FFFF Light Blue #0000FF Dark Blue #0000A0 Light Purple #FF0080 Dark Purple #800080 Yellow #FFFF00 Pastel Green #00FF00 Pink #FF00FF Color Color Code White #FFFFFF Light Grey #C0C0C0 Dark Grey #808080 Black #000000 Orange #FF8040 Brown #804000 Burgundy #800000 Forest Green #808000 Grass Green #408080
  2. Here you go:
  3. For generating HTML color codes, usually you have to experiment a bit or use a color converter, Bitmap can be used, but it need a hardwork, since you have to convert three decimal value to hexadecimal value (this can be done in windows calculator) Also, for HTML color names, http://www.w3schools.com/css/css_colornames.asp is a good reference on all color names available to most bowsers. FYI HTML standard itself only define 16 color names. Tips: if you click on the html color names in the link above, you could experiment with different color on the color you clicked defined as background, so you don't need to experiment much ----------------------------------------------------------- DON'T USE THE FIRST ANSWERER'S WAY OF ADDING COLOR, that is an outdated and obselete way of adding colors, use CSS not HTML to add color, since using HTML makes your HTML code messy. There're lots of tutorials on these, try: http://www.w3schools.com/css/default.asp it's the first tutorial I read that makes me understand CSS myself -----------------------------------------------------------
  4. don't use the <font> tag. leanr cascading style sheet. they are easy to learn and give you lots more control over your pages. here are color charts. don't use colornames. there are only 16 that the html validator will let you use. best to use the 216 color safe hex numbers http://dwight.clickthesky.com/colorcharts/
Powered by Yahoo! Answers