Skip to content

Challenge Use RGB values to Color Elements

SaintPeter edited this page · 1 revision
Clone this wiki locally

Another way you can represent colors in CSS is by using rgb values.

RGB values look like this: rgb(0, 0, 0) for black and rgb(255, 255, 255) for white.

Instead of using six hexadecimal digits like you do with hex code, with rbg you specify the brightness of each color with a number between 0 and 255. background-color: rgb(0,0,0);

Something went wrong with that request. Please try again.