- Home
- Web Related
- HTML Color Codes
HTML Color Codes
- By Tarik Sabbagh
- Published 21/05/2007
- Web Related
- Unrated
In order to display color in HTML hexidecimal numbers are used to reresent the various colors.
These hexadecimal codes can be used in both XHTML and CSS. Decimal color codes can also be used in CSS and most graphic design applications.
To change the font color in HTML add the below to your web page source.
<font color="#FF0000">Making the text color red</font>
In addition to the above you can also specify the name of the color directly as shown below.
<font color="red">Making the text color red</font>
You can also use these codes within your BODY tags.
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.
While all browsers support the above font tag examples you should consider using CSS to change the color of your text, links and other areas of your web page.
Major hexadecimal color codes
|
|
Continue on for our full color chart