CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

Color Property in CSS

The color Property



The CSS color property specifies the color of the text. There are different methods for specifying the color of the element. One method is simple by putting the color name while the other methods include Hex values or RGB values.




Its syntax is:-

< style >

element {

color: color| initial| inherit;


< /style >


Further Explanation:-


Value Description
color Specifies the text color.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Basic

All Sections related to CSS