Text

color

This property sets the color of the text within the selected tag. This property is inherited, therefore setting the color red to the body element will affect al tags inside it.

Example

color: #FFFF33;

Browser support

IE5.5+, FF1+, SA1.3+, OP9.2+

Values

Color keyword One of the 17 recognized color keywords; aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, orange, purple, red, silver, teal, white and yellow.
Hex color Three two-character numbers in the hexadecimal system(base 16)
inherit The property uses the same value as the same property of the parent element.
RGB decimal Use RGB values from 0 to 255; rgb(255, 0, 333).
RGB percentage Specify a color using percentage values: rgb(100%, 0%, 33%).

Related properties

Can be used with..

Search the Soup!