Menu Home

color

osbo.com | CSS | Properties | color

The color CSS property describes the foreground fill color of an element's text content.

Syntax

CSS

color: value;

JS

object.style.color = "value";

Values

<'color'> = <color>
<color>

Specifies the color using a keyword or a numerical specification.

Initial

CanvasText

Examples

color

JS

World Wide Web Consortium (W3C)