Rgb color definition in CSS

Teaching myself here to teach the students:
I expected that the body background would be red
It did not change
Thank you!


You have an extra space between the rgb and the parenthesis. Delete that space and it should work. With a space, it treats the statement like it has two values, rgb and (255,0,0). It can’t interpret either value, so it does nothing.


1 Like