Example

A simple color property example:

Laboratory

description & Usage

To determine the color in css, we use the color property.

Informations

# Description
Default Value not specified
Inherited yes
Animatable yes
Version CSS1
JavaScript syntax object.style.color="#0000FF"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
color

Syntax

Values

Values Description
color It is used to set the color of the text.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.