html codes?

can someone tell show me how to do html codes for color and then give me an example thanx

Public Comments

  1. you mean for the font? here's an example: <font color=red>Your text here</font color> The colors i know by name are: red, aqua, black, yellow, maroon, darkred, teal, green, silver, grey, fuschia. you can also enter what's call the hex code which is a series of 6 digits, using letters and numbers (can be from 0-9 and a-f) example: <font color=bced91>Your text here.<font color> You should check out this website: http://www.december.com/html/spec/color.html it has a list of all of the hex color codes and a sample of what the color will look like.
  2. Colour, In CSS use these: <span style="color: #6666ff; background-color: #00cc66">Something</span>
  3. Use the css style attribute to set text color. The font tag is deprecated, so you might as well learn the correct method. <p style="color: red;">Some red text</p> This could also be done in an external stylesheet: p { color: red; } This site has good xhtml/css tutorials: http://htmldog.com
  4. http://www.webmonkey.com/webmonkey/reference/html_cheatsheet/ tutorial below http://www.htmldog.com/guides/htmlbeginner/
Powered by Yahoo! Answers