CSS

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

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS rgb() Function

CSS rgb() Function

 

 

The rgb() function is used to define colors using the Red Green Blue (RGB) model. Its value can be specified by rgb(red, green, blue). Each parameter determines the intensity of color and has values ranging from 0 to 255 or a percentage value from 0% to 100%.

 

Syntax:-

 

Its syntax is:- rgb(red, green, blue)

 

Further Explanation:-

 

Value Description
red Defines the intensity of red. Its value ranges between 0 and 255, or between 0% and 100%.
green Defines the intensity of green. Its value ranges between 0 and 255, or between 0% and 100%.
blue Defines the intensity of blue. Its value ranges between 0 and 255, or between 0% and 100%

Code Explanation

All Tutorials related to CSS Functions

All Sections related to CSS