From http://www.w3schools.com (Copyright Refsnes Data)
The color property sets the color of a text.
Inherited: Yes
CSS properties can also be dynamically changed with a JavaScript.
Scripting Syntax: object.style.color="#FF0000"
In our HTML DOM tutorial you can find more details about the color property.
In our HTML DOM tutorial you can also find a full Style Object Reference.
body |
Value | Description |
---|---|
color | The color value can be a color name (red), a rgb value
(rgb(255,0,0)), or a hex number (#ff0000). Default value: Browser dependent |
Set the color of the text
This example demonstrates how to set the color of the text.
From http://www.w3schools.com (Copyright Refsnes Data)