Home | Computer Science

RGB VALUE
In CSS, a color can be specified as an RGB value, using this formula: rgb(red, green, blue) Each parameter (red, green, and blue) defines the intensity of the color between 0 and 255.


4. CSS color with RGB. Here is what the "styles.css" file looks like: "styles.css" h2{ background-color:rgb(60, 179, 113); } h3{ background-color:rgb(0, 0, 255); } "External.html" <html> <head > <link rel="stylesheet" href="styles.css"> </head > <body> <h2 > <This is Way to add color with RGB></h1 > <p h3> <This is Way to add color with RGB.></p > </body> </html>

This is Way to add color with RGB

This is Way to add color with RGB