what colors of <font> can i use?in html.?

what colors can be used in HTML like is i use... <font color=______> what colors can i use in the _____ part?

Public Comments

  1. there are 65,536 I'd list them all, but... the colors are composed of 3 sets of 256 possibilities 256 x Red shades 256 x green 256 x blue thats 65,536 000000 = black ffffff =white ff0000= red 00ff00 =green 0000ff =blue ff is hexadecimal (counting in 16's) =256 lok here http://www.w3schools.com/Html/html_colors.asp === Correction === Medhi's right my multiplication was wrong, can't be perfect in everything ;-) I only di 256 x 256, sorry Possibly the font is deprecated, but you know for sure that it will work in all browsers. Span don't work in all browsers And web safe is actually only 216 colours according to the specs.
  2. Not a single one. The FONT element has been deprecated. Use <span style="color:#000000;"... instead. There are 256 *256 *256 possible combinations in the hex format (00 - 99, AA - FF in each pair). That's a total of 16.777.216, by the way. #FFFFFF = 17.777.215 #000000 = 0 If you want to remain "web-safe", there's only 256 options (each pair *has* to consist of two identical characters: AA0000, FF3366, etc.) #000000 - Black #FFFFFF - White #FF0000 - Red #00FF00 - Green #0000FF - Blue You can also use "named" colors (like Red, Darkred, Blue, LightBlue), but not all browsers show then consistently. EDIT: And Trev's correction on the 216 web safe colors is a good catch. :-) So which browsers don't support span? IE 2? 3.02? Netscape 3 and 4? Time those were ditched, anyway. Present plain old unstyled content to old browsers so that the *value* of a website remains (and include text-to-speech while you're at it), but style and layout for browsers that are up to par. EDIT: Wow. Thanks for validating my answer by copying it, Mr. Web Designer.
  3. Please do not use the font tags. they have been deprecated and no longer to be used. There are only 216 web safe colors: http://www.techbomb.com/websafe/ It is also recommended NOT TO USE named colors as some browsers do not understand the color name. Use this code for your text color changes: <span style="color: #0f0;">This text is green.</span> This <span style="color: #0f0;">word</span> is green. Ron
Powered by Yahoo! Answers