Background color
The default background color is transparent, meaning that most browsers will use a white background if you don't specify otherwise anywhere on the page.
You can apply the background-color
property to pretty much any element: set the page background in the <body>
element, or set the text background in text elements like <h1>
. Similar to adjusting text color, you can use different types of values to set the background color: color name (orange
), hex value (#FFA500
) or RGB value (rgb(255, 165, 0)
).