Home / CSS Tips Generated By ChatGPT / Applying Background Colors in CSS The background-color property sets the background color of an element. Source Code body { background-color: #f0f0f0; }