Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 4: Understanding the CSS Box Model!

Instruction

How to Set Background Colors and Images

CSS provides properties to add background colors and images to elements, enhancing their visual appeal while maintaining readability and accessibility. Here's a breakdown of how to effectively use these properties.


Background Color

The background-color property sets a color behind an element's content, padding, and border, but not behind its margin.

element {
...