You are here : cssCSS 3color

color - CSS 3

The color property specifies the color of text.

Tip: Use a background color and a text color that makes the text easy to read.


Syntax

tag/class/id {
	color: value;
}


Example

body {
    color: red;
}

h1 {
    color: #00ff00;
}

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


Output / Return Value


Limitations


Alternatives / See Also


Reference