# Property Description

The color property sets the color of text.

# Property Values

Value | Description
--- | ---
color_name | Specifies the color with a color name
hex_number | Specifies the color with a hex code
rgb_number | Specifies the color with an RGB code
inherit1 | Specifies that the value of the property should be inherited from the parent element

# Examples

These examples set the text-color to blue for different elements.

    h1 {
      color:blue;
    }

    h2 {
      color:#0000ff;
    }

    p {
      color:rgb(0,0,255);
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

1 - 'inherit' not supported by IE

# Miscellaneous Information

Inherited: | Yes
Defined In: | CSS1