Background color part 2
The Background Color Values
The color of the background can be defined using three different formats: a color name, hexadecimal values, and RGB.
In the example below, the body, h1, and p elements are assigned different background colors:
The HTML:<h1>This is a heading</h1>
<p>This is a paragraph</p>
The CSS:
Result:
Tap Try It Yourself to play around with the code!
Comments
Post a Comment