CSS Colors

Go to main Page

Colors in CSS

Importance of Color in Webpage

Colors play an important in a webpage because colors make our webpage beautiful and attractive. Colors can change the temperaments, decrease or increment pressures, cause fervor and some of the time have a calming impact for a drained individual.

Color combination for webpage?

Text Color in CSS

   color:blue; /* for text color */

Background Color in CSS

   background-color:red; /* for Background color */

Border Color in CSS

   border:2px solid blue; /* for Border color */

Types of Color we can use in CSS

We can use color codes, color name,and RGB

Colors are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values.

You can find more colors and their codes here