Need to know more about HTML colors. If we give any text instead of colors it won't return any error.?

Instead it would display in some color.I need to know the concept behind this. Ex.: <body bgcolor="Computer"> This will display the body section with Purple background. <body bgcolor="Software"> This would display the background in Blue color.

Public Comments

  1. some colours can be labelled with text, like red, blue, purple and anything simple. But you don't really get the tone you want and that's where you need the alpha-numeric codes. Here's one you can choose the range from: http://www.immigration-usa.com/html_colors.html#USAGE
  2. Hi, yea your correct... Color is represented in a hexadecimal notation. Therefore, if you choose Computer, it will get the nearest hexadecimal representation for it... Therefore purple But be aware thats a wrong syntax... I advice you to stick with webstandards... Take a look at the links I provided for you to learn more about these stuff.. I recommend you to use styles instead.. <body style="background:red;border:1px solid black"> <body style="background:#ff0000;border:1px solid #000000"> With styles, you could do alot! You can add anything you want. But you would say it will be messy! and I agree! I URGE you to take a look at these fun examples! http://www.w3schools.com/css/css_examples.asp And see yourself! Learn the new modern way... Trash the traditional way :)
  3. Use hexadecimal value for giving color names, dont use plain text color name., e.g. #000000 is black Fo reference visit http://www.w3schools.com/html/html_colors.asp Colors are defined using a hexadecimal notation for the combination of Red, Green, and Blue color values (RGB). The lowest value that can be given to one light source is 0 (hex #00). The highest value is 255 (hex #FF). ...........................
  4. <body bgcolor="Software"> what do you call that? put color names, rgb, or hex there not software. http://dwight.clickthesky.com/colorcharts/
  5. .......
Powered by Yahoo! Answers