Division of Information Technology
Web Publishing @ SFSU
Colored Text

Specifying a Color by Name Images The formatting tag <FONT> with the element COLOR="red" is used to change selectively the color of the text of the document to red. This temporary color change terminates on the </FONT> tag.

Possible values for a named color are: black [black], maroon [maroon], green [green], olive [olive], navy [navy], purple [purple], teal [teal], gray [gray], silver [silver], red [red], lime [lime], yellow [yellow], blue [blue], fuchsia [fuchsia], aqua [aqua], indigo [indigo], white [white].

Specifying a color by RGB value A general color is specified in terms of the three primary colors red, blue and green. Each primary color is defined as a two digit Hexadecimal number that representing the strength of that primary color.

In this specification hexadecimal 00 means 0% of the color and hexadecimal FF means 100% of the color.

For example, to specify red the hexadecimal number FF0000 is used. In this number:

  • The first two digits FF define 100% of red
  • The second two digits 00 define 0% of green
  • The third two digits 00 define 0% of blue
Other Considerations Remember, the ability to display the color depends on the color depth of the monitor used by the viewer. Many monitors will only be able to display 16 or 256 distinct colors, and some will only have a black and white display.

For viewers with a monitor with a limited color depth other colors will be displayed by dithering. A process which simulates the un-displayable color, by creating a pattern of dots in colors which when viewed at a distance will fool the eye into seeing them as a single new color. Unfortunately this reduces the resolution of the displayed area and can render the page unreadable if colors are not carefully selected.

Sample Code
<FONT COLOR="indigo">indigo</FONT>
For More Information BODY ColorMaker Resources
Backgrounds and Colored links
colormix

About | Getting Started | Create | Publish | Enhance | Advertise | Maintain
Index | Glossary | Software | For more Information


SFSU Home   Search   Need Help?  

1600 Holloway Avenue, San Francisco, CA 94132 (415) 338-1111
Last modified February 11, 2008 by the Web Team